Blog

Entity Framework Inheritance Table Per Type (TPT) in .NET

Table per Type (TPT) is a type of inheritance mapping in Entity Framework where each derived entity type is mapped to a separate table in the database. For example, consider the following object model: Copy codepublic abstract class Vehicle{ public int Id { get; set; } public string Make { get; set; } public string … Continue reading Entity Framework Inheritance Table Per Type (TPT) in .NET