Posts by Lucas Santos • 141 points
10 posts
-
0
votes1
answer27
viewsQ: Data update issues with Entity Framework with relational data
I have a Query table that has two foreign keys (Client and Procedure). to add a new query I can normally, but when editing it does not change my Client or Procedure the other fields modifies…
-
1
votes2
answers90
viewsQ: Problem with database query by date using Line and Entity in C#
I have the following appointment at the bank; consultas = ctx.Consultas.Include(c => c.Cliente).Include(p => p.Procedimento).ToList(); which works perfectly, but I want to include a Where to…
-
0
votes1
answer30
viewsA: C# wpf Datagrid generation
the way I managed to fix my problem was like this shaman <DataGrid x:Name="dgPagamentos" HorizontalAlignment="Right" Margin="0,177,57,0" Width="557" Height="163" VerticalAlignment="Top"…
-
0
votes1
answer30
viewsQ: C# wpf Datagrid generation
I have a datagrid that is automatically generated dgPagamentos.ItemsSource = HistoricoDoClienteViewModel.ExibirPagamentosPorCliente(id); My problem is that this call returns me an object that…
-
2
votes0
answers27
viewsQ: Problems displaying data from an automatically generated table because of the relation n to n, Entity framework c#
I am using Entity Framework code first in C#, I have the following classes. Procedure (only the relevant part): public int Id { get; set; } public virtual ICollection<Produto> Produtos { get;…
-
0
votes1
answer85
viewsQ: C# Wpf Passwordbox want to spy the password
Good evening, I have some Passwordbox and would like to add buttons to spy this password when the user needs it, I tried to invoke the Passwordrevealmode inside the Passwordbox, however it does not…
-
1
votes1
answer50
viewsQ: Entity Framework, code First, Database query
Good evening, I have two classes to which one is an attribute of the other, Customer has Anamnese , when I search the database the return is the right customer, but the field Anamnese is null, and I…
-
2
votes1
answer220
viewsQ: C# problems loading Data Grid using Datetime
Good night. I have one dataGrid which I carry using Entity Framework, however in dataGrid my date appears MM/dd/yyyy, I want to remove the time and format the date to dd/mm/yyyy, and in the validity…
-
2
votes1
answer62
viewsQ: String search in database using Linq C# wpf
I have a bank and I want to run a search in the name field, but I also want the customer to be able to search for parts of the string or even with uppercase and minuscule letters. by the time my…
-
3
votes1
answer33
viewsQ: Problems with wpf Data Grid
Good night. I am developing a project but I am having problems, I use a list that is being generated with the data of my database (Entity for connection), I want to populate a data grid but I do not…