You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassDetailedOrder{publicintId{get;set;}publicstringCategory{get;set;}publicOrderStatus?Status{get;set;}publicstringBillingAddress{get;set;}publicstringShippingAddress{get;set;}publicbyte[] Version {get;set;}}
@sbojarczak Please open a new issue and attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing so that we can investigate.
With Nullable Reference Types turned on, Entity Framework Core is unable to map two nonnullable reference types to the same column of a table.
Steps to reproduce
To reproduce this issue, I modified the table splitting example of the EF Core documentation: https://docs.microsoft.com/en-us/ef/core/modeling/table-splitting
With this setup, adding a migration will fail with the following error message:
'DetailedOrder.Category' and 'Order.Category' are both mapped to column 'Category' in 'Orders' but are configured with different nullability.
Further technical details
EF Core version: 3.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET Core 3.0
Operating system: Windows 10
IDE: Visual Studio 2019 16.3
The text was updated successfully, but these errors were encountered: