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.
For the query below, ToQueryString returns ```sql SELECT [c].[Id] FROM [Chunky] AS [c] ORDER BY [c].[Id] ``` I would expect it to show all three queries that eventually get logged:...
### Description When There Variables From Primary Constructor Like Injecting DbContext When Debug And Hover Over DbContext And Breakpoint In Method To Query Somthings I Hovered Over DbContext And dbContext...
While looking into reducing short term memory allocations in our web API I discovered that EF Core shows up a lot in the top entries. Example from dotMemory trace where...
When adding or deleting a migration using dotnet-ef tool, the migration code generated and the snapshot code contains an extra ```using ;``` that breaks the build. Everytime we have to...
I am playing with various multitenancy scenarios, and I'd like to have a model per tenant (tenantId received in request), so I am reading the [docs](https://learn.microsoft.com/en-us/ef/core/modeling/dynamic-model) and looking at the...
DbUpdateConcurrencyException is currently only thrown for an EF concurrency-token related failure, i.e. when the rows-affected from the database don't match the expectation. There are various other concurrency errors that are...
There seems to be a regression bug related to how EF8 now translates Contains with OPENJSON instead of using IN in previous versions. This applies to SQL server and SQL...
An issue with EF Core Recursive Updates on Unchanged Entities across Different DbContext Instances
**Scenario Description :** I encountered a problem while working with Entity Framework. The situation involves reading an entity from dbContext1, disposing of this context, and then attempting to update the...
System.InvalidOperationException: Only root entity type should be marked as temporal. Entity type:
I wanted to make use of the Temporal table feature to track changes for my entities but it appears to the validator is too strict for even basic inheritance scenarios....
### Description Code blow should include `maxDepth` layers of self containing objects with related properties but instead it just include for 2 levels and it sounds bug to be, because...