Transient NREs when loading many-to-many related entities meanwhile they are inserted
I have three tables: A, B, AtoB. A and B relate as may-to-many via the AtoB:
How to configure relationships
Suppose we have a Book which contains two accounts:
C# Bool filtering in a EF query
This query works until filter.Exported and filter.Ordered are null but when they are true or false, it returns unexpected items and I don’t know why
c# entity framework & object patterns
I have a program that has a number of objects (say 200).
In addition, I have an entity framework which declares a dbset for each of these.
The objects are similar (but not all identical). I feel like a factory pattern would be worthwhile here to build the objects as well as the Dbcontext dynamically.
Strange Performance In EF Core SQLite
I have a query that I’m running in EF Core hooked up to a SQLite DB. I noticed it was running a bit slower than I expected so I turned on the logs to output the query. In the logs, it says:
Creating an EF migration for a SQL script
I have created a SQL script file with a bunch of insert’s into a table if the values do not already exist.
creating an EF Migration for an SQL Script
I have created an SQL script file with a bunch of insert’s into a table if the values do not already exist.
Entity Framework 8 DateOnly and DateTime comparison
I recently upgraded from EF7 to EF8, and because I do scaffolding models from DB (DB first approach), now I have DateOnly data types instead of DateTime for the Date column.
EF: Create record WITHOUT associated records
How can I create a new record, whilst also storing its related entities without creating a new record for the related entities (THEY ALREADY EXIST).
EF Core, do not track inluded child entities
I’m trying to disable tracking for related children entities. I have a model like below (simplified):