Relative Content

Tag Archive for c#entity-framework

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: