efcore
efcore copied to clipboard
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
Fixes #35025
This is currently causing confusion, see https://github.com/npgsql/efcore.pg/issues/3679 `.ToJson("CustomColumnName")` should be a synonym for `.ToJson()` and `.HasColumnName("CustomColumnName")`
The following code: ```c# await using var context = new BlogContext(); await context.Database.EnsureDeletedAsync(); await context.Database.EnsureCreatedAsync(); _ = await context.Blogs.Where(b => b.ComplexThing.Prop1 == 8).ToListAsync(); public class BlogContext : DbContext { public...
Related to #31235
### Question When the database is completely new, when migrating EF tries to read from the migration history table and logs the following error: > Failed executing DbCommand (4ms) [Parameters=[],...
### Bug description I encountered this bug when using `EF.Functions.DateDiffSecond` in a nested query. ```cs var query = context.WorkUnits .GroupBy(w => 1) .Select(g => new { AverageSeconds = g.Average(w =>...
## Question I am trying to query against owned objects to see if they are null but I get an exception and can't find a work-around to achieving the query...
### Bug description Trying to follow the instructions found at: https://learn.microsoft.com/en-us/ef/core/providers/sql-server/vector-search?tabs=fluent-api It works for a completely fresh project where only an initial migration needs to be generated. For existing EF...
### Bug description Complex properties in cosmos db can be configured, but are not stored in the db, nor are they retrieved or can be queried. Originally: #31253 was named:...
### What problem are you trying to solve? I ran across this limitation when trying to automagically move content of users that delete their accounts to a `Deleted User` kind...