I am using Devart dotConnect for MySQL with Entity Framework 6 in a Windows Forms application (.Net Framework 4.8). I'm using the DB first approach wi ...
I am using Devart dotConnect for MySQL with Entity Framework 6 in a Windows Forms application (.Net Framework 4.8). I'm using the DB first approach wi ...
I have a date table and a time table. These two tables are related. In the date table, I created the date and defined times for this date. I want to g ...
In C# i can do a left join query, with multiple conditions. Like this C# example that runs fine: I've tried to translate this to the following in F ...
I'm trying to save only changed entities. If I remove this if: everything is fine. But if I keep it, on the statement _context.Attach(period); or ...
In my .net 6.0 project I use the Entity Framework 6 to get data from my database. My model contains a foreign key, which is used to resolve the data ...
Im migrating a project from .Net 4.X to .Net 6 and EF 6 to the latest version (version 7 i believe) using Visual Studio 2022. I've migrated a bunch o ...
I want to edit column title in datagridview using Entity Framework. I added column and design name with form design, but when I add datasource in code ...
. Answers to this question are eligible for a +50 reputation bounty. Bounty gr ...
I have an one-to-many relation in my entities: I want to load Header and some of its Items, so I wrote this linq to entity query(EF6): This quer ...
I have a join table representing a many-to-many relationship: As seen above, I declared a unique constraint because I want [Order] values unique wi ...
I read EF 5 introduced filtered includes. This allows me to write something like this : But I'd like to handle the .Where(msc => /* Some condit ...
We are moving our on-prem database to Azure. Our applications use Entity Framework 6. Everything works fine using System.Data.SqlClient using the auth ...
Below is my override saveChanges Methed which calls SetChanges Method Right now, Sometimes code works completely fine but in some scenario It gives ...
I am using .NET Core 6 with Entity Framework. I have 2 model classes called Category and Subcategory. Category implements my ICategory interface: ...
I have a .Net Core 6 console application that connect to a local SQL Server, this works fine on my dev computer. But when I try the same application o ...
For some reason, the lazy loading of a related entity always turns out NULL. I think I followed all the needed rules to apply for the proxy generation ...
I have a table where users are stored and I want to display them by date,Dates are stored as strings. Linq : IQueryable<User> result = _contex ...
I have two model which are bound to each other with foreign key constraints. PurchaseOrder is the parent table PurchaseOrderQtyBreakDown is the ...
Recently we've migrated one of our project from ADO.net to EntityFramework 7. In the log file we've noticed multiple warnings like the following, ...
My Model Class is: DbContext is: Getting SubDepartments: Updating like this: My definitions are like this. EF is updating other fields exc ...