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
I have a database model that includes 3 types of user: SimpleUser, Secretary, Doctor.
Secretary and Doctor inherts SimpleUser entity.
I want the capability of a user having multiple types(or discriminator) at the same time. I'm using TPH approach to map my models to a table, but Descriminator value can't get multiple values.
So, my question is, is there any way to use multiple Descriminator value or I have to use TPT approach?
Include provider and version information
EF Core version:
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET 5.0)
Operating system:
IDE: (e.g. Visual Studio 2019 16.3)
The text was updated successfully, but these errors were encountered:
I have a database model that includes 3 types of user: SimpleUser, Secretary, Doctor.
Secretary and Doctor inherts SimpleUser entity.
I want the capability of a user having multiple types(or discriminator) at the same time. I'm using TPH approach to map my models to a table, but Descriminator value can't get multiple values.
So, my question is, is there any way to use multiple Descriminator value or I have to use TPT approach?
Include provider and version information
EF Core version:
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET 5.0)
Operating system:
IDE: (e.g. Visual Studio 2019 16.3)
The text was updated successfully, but these errors were encountered: