Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlapping Inheritance and multiple Discriminator #24997

Closed
mogaozq opened this issue May 28, 2021 · 1 comment
Closed

Overlapping Inheritance and multiple Discriminator #24997

mogaozq opened this issue May 28, 2021 · 1 comment

Comments

@mogaozq
Copy link

mogaozq commented May 28, 2021

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)

@smitpatel
Copy link
Member

Duplicate of #10140

@smitpatel smitpatel marked this as a duplicate of #10140 May 28, 2021
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants