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
The property 'Employee.Supervisor' is of type 'Supervisor' which is not supported by current database provider. Either change the property CLR type or ignore the property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.
How do I combine both the backing field concept and the navigation property concept?
@APIWT The answer to this depends on whether or not Supervisor is intended to be an entity type or not. If it is, then the references to it are "navigation properties" which are not configured using the Property API. See #6674 for how to configure the backing field.
If it's not an entity type, then use a value converter to map it to the database.
Take the following entities:
And the following DB context:
When running the update database command:
The following error is generated:
How do I combine both the backing field concept and the navigation property concept?
Further technical details
EF Core version: 3.1.2
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET Core 3.1)
The text was updated successfully, but these errors were encountered: