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 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{}
The text was updated successfully, but these errors were encountered:
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{}
The text was updated successfully, but these errors were encountered: