efcore icon indicating copy to clipboard operation
efcore copied to clipboard

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

Results 1142 efcore issues
Sort by recently updated
recently updated
newest added

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")`

customer-reported
area-model-building
area-json

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...

area-query
consider-for-next-release
area-complex-types

Related to #31235

area-model-building
area-relational-mapping
consider-for-next-release
area-complex-types

### 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=[],...

customer-reported

### 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 =>...

customer-reported

## 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...

blocked
customer-reported
area-query
area-cosmos

### 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...

customer-reported
area-migrations
priority-bug

### 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:...

customer-reported

### 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...

customer-reported
area-migrations