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
One of my entities is using the Table per Hierarchy model as follows:
[Table("Books")]
public class Book
{
public int ID { get; set; }
}
public class Magazine : Book
{
public string Title { get; set; }
}
public class Novel : Book
{
public string ISBN { get; set; }
}
My CSV file is titled Books.csv and has ID, Title, ISBN, Discriminator
Everything else in the database (which is not TPH) is getting loaded perfectly fine, but the DbSet of Books, Magazines and Novels is always empty. It works fine if I manually add an entity using the context and do save changes.
Could you please point me in the right direction?
Thanks
Best Regards
Vishal
The text was updated successfully, but these errors were encountered:
Hi,
One of my entities is using the Table per Hierarchy model as follows:
My CSV file is titled Books.csv and has ID, Title, ISBN, Discriminator
Everything else in the database (which is not TPH) is getting loaded perfectly fine, but the DbSet of Books, Magazines and Novels is always empty. It works fine if I manually add an entity using the context and do save changes.
Could you please point me in the right direction?
Thanks
Best Regards
Vishal
The text was updated successfully, but these errors were encountered: