GeroIwan
GeroIwan
EF Core uses TPH for inheritance. Therefore database columns for properties of derived entity types allow NULL even if the property type is not nullable. The same holds for owned...
In the first paragraph: The method relevant for the model is DbContext.OnModelCreating(ModelBuilder) instead of DbContext.OnConfiguring(DbContextOptionsBuilder), isn't it? --- #### Document Details ⚠ *Do not edit this section. It is required...
In the first paragraph: The method relevant for the model is DbContext.OnModelCreating(ModelBuilder) instead of DbContext.OnConfiguring(DbContextOptionsBuilder), isn't it? --- #### Document Details ⚠ *Do not edit this section. It is required...
All examples for the `AddDbContext` overloads show code using an `AddDbContext` overload but no `AddDbContext` overload. --- #### Document Details ⚠ *Do not edit this section. It is required for...
_(title and description edited one hour after opened)_ The following code performs the **same query** (and the same checks) for all values of `QueryTrackingBehavior`, and shows **different results** for different...
After updating from EF Core 5 to EF Core 6, some of our unit tests failed. I couldn't figure out by which of the known breaking changes this might be...
The code example for storing owned types in separate tables has to be: ``` modelBuilder.Entity().OwnsOne(p => p.OrderDetails, od => { od.OwnsOne(c => c.BillingAddress); od.OwnsOne(c => c.ShippingAddress); od.ToTable("OrderDetails"); }); ``` ---...