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

EF7 Class Inheritance #1466

Closed
WillBaldwin opened this issue Jan 24, 2015 · 2 comments
Closed

EF7 Class Inheritance #1466

WillBaldwin opened this issue Jan 24, 2015 · 2 comments

Comments

@WillBaldwin
Copy link

using EntityFramework 7.0.0.-beta1

I have class inheritance setup with the intent to implement Table per Hierarchy (TPH) database schema on SQL Server. As I understand it EF7 should default to TPH but in my test application it is defaulting to (TPC). Is there a HINT I can give EF7 to indicate TPH is my intent?

public class Book
{
public int BookId;
public string Name;
}
public class Paperback : Book{}
public class Notebook : Book{}
public class Hardcover: Book{}

@WillBaldwin
Copy link
Author

I found where TPH support is a still a TODO item in the repo...

@rowanmiller
Copy link
Contributor

Here is the work item tracking inheritance support: #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

3 participants