Questions tagged as 'c#'

1
answer

Entity delete table and its relationships

Is there any way to delete a table record and all of its relationships at once? because I currently delete each related record before deleting the main record, and this takes a lot of time, for example I have the table Note and I want to delete...
asked by 02.10.2017 / 21:34
1
answer

Error trying to save information to the database through the Entity Framework

My project has the following classes: public class Manifestacao { public long Id { get; set; } public string NumeroChamado { get; set; } public virtual Cliente Cliente { get; set; } public virtual List<Conteudo> Conteudo...
asked by 04.10.2017 / 16:12
1
answer

Language used for a title designer of the VMIX application

What language do you use to work with Title Designer? This title works with an application that I use in my everyday work. If possible, some reference book for studying it. Code below: <UserControl xmlns="http://schemas.microsoft.com/...
asked by 31.08.2017 / 05:13
1
answer

Picking up a json string

I'm wondering if I'm querying an api and it returns me this: "{\"optimized\": null, \"optimized_slo\": null, \"normal_slo\": {}, \"normal\": {\"estimated_cost\": \"28.40\", \"distance\": 10198, \"original_eta\": 2236, \"path_suggested_gencoded...
asked by 31.08.2017 / 07:24
1
answer

Error loading database information into a datagridview through the Entity Framework

My project has four classes: public class Manifestacao { public long Id { get; set; } public string NumeroChamado { get; set; } public string DataHoraReg { get; set; } public Cliente Cliente { get; set; }...
asked by 30.08.2017 / 20:16
1
answer

Creating method in C #, where do the parameters contain? [duplicate]

What's the use of adding "?" the front of the parameter variable? Example: public void somar(int n1, Date data?){ } OR public void somar(int n1, Date? data){ }     
asked by 06.10.2017 / 18:28
1
answer

Dynamic method to open screens

I'm creating a method to open any screen I pass in the parameter. I did this method: public async Task NavigateTo(Page page) { await App.MasterDetail.Detail.Navigation.PushAsync(new page()); } But every time I'll compile from an...
asked by 21.09.2017 / 01:22
1
answer

Conflict when opening multiple screens in menuStrip - Visual Studio

I have 3 forms. Parent Form (Parent) Child Form (Services) Child Form (Suppliers) What is happening .. I block the person from trying to open the same form more than once, but when it tries to open another form ( and have another alre...
asked by 20.09.2017 / 16:54
1
answer

Save Canvas as Image - UWP

In UWP plication, I have the following canvas <Canvas Name="Banner" Width="500" Background="Black" Height="200" Margin="334,53,-711,-156"> <Image x:Name="img_Fita" HorizontalAlignment="Left" Height="30" Width="30" RenderTra...
asked by 22.08.2017 / 18:47
2
answers

Check if file exists for 20 seconds C #

I'm doing a module that works with file sharing and in the documentation it asks to wait 20 seconds for the status file xxxxxxxx.sta, however, I'm not sure how to implement this in C #. I was trying something on this line, but it seems to run as...
asked by 21.08.2017 / 20:23