I have been working with inheritance on Entity Framework 6 (code-first) with Visual Studio 2015. At this point I wanted to try Multiple Inheritance like this (This is a summary not the exactly syntaxt):
public abstract class Person {
public String Name
public String LastName
}
public class Teacher : Person {
[Key]public int Id_Teacher
}
public class Student : Person {
[Key] public int Id_Student
public string code_s
}
public class ExchangeStudent : Student {
[Key] public int Id_ExchangeStud
public string HomeUniversity
}
I have made the first step that is create Person and the Child tables Teacher & Student, but when it comes to create the third child table it don't work.
I used TPC for the first step so in the Context I got DbSet of Students and Teachers.
Is there any way to implement the third table EXCHANGE STUDENT??
Thanks you so much.