Choose an Inheritance Strategy RRS feed

  • Question

  • Maybe it is a wrong and stupid question.  Please see here.

    Suppose we want to configure one to zero or one relationship using DataAnnotation:

    public class Student
            public Student() { }
            public int StudentId { get; set; }
            public string StudentName { get; set; }
            public virtual StudentAddress StudentAddress { get; set; }

    What is the Inheritance Strategy here?(

    Table Per Hierarchy (TPH) or Table Per Concrete Class (TPC) or Table Per Type (TPT)?

    Friday, April 11, 2014 1:33 AM