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

Inheritance redundancy column #1551

Closed
ghost opened this issue Feb 5, 2015 · 1 comment
Closed

Inheritance redundancy column #1551

ghost opened this issue Feb 5, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 5, 2015

I create 3 entities, for example :

class A {
public int Id {get; set }
public string Name {get; set; }
}

class B : A {
public string Location {get; set;}
}

class C : A {
public int Number {get; set;}
}

I run the command : k ef migration add initial, and entity framework generate 3 tables :
Table A with the columns Id, Name.
Table B with the columns Id, Name, Location.
Table C with the columns Id, Name, Number.

Don't create 1 table with column discriminator, what is the guideline for the inheritance code first implementation ?

@rowanmiller
Copy link
Contributor

Inheritance is one of the features that has not been implemented yet. The work is being tracked by this work item #247.

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants