Entity Framework: ability to override navigation property

I have objects that are shown in the picture:

enter image description here

Since Student and StudentDetail have a base class, and the association is done in the base class, Student has a collection IList<Detail> Details

and StudentDetail

has a reference property Person

with a type Person

. Is there a way to have property IList<StudentDetail> Details

and Student Person

reference properties in subclasses without creating another association?

I tried to create public virtual new IList<StudentDetail> Details

which EF didn't like it. Cannot be included IList<StudentDetail>

in ICollection<Detail>

.

+3


source to share





All Articles