我的應用應該有Medics和Participants。如何在EF中對此進行建模?
他們都應該能夠登錄到網站。
所以,現在我所擁有的是這個。
public class Participant:Person
{
public string EmergencyContactNumber;
}
public class Medic:Person
{
public string MedicHospitalId;
}
public abstract class Person
{
public string FirstName;
public string LastName;
public string UserName; //this is the Membership Provider UserName to associate the MembershipUser to the Person thats logging into to the system.
}
的問題,這是一名醫生可能最終也是一個參與者......我不想有創建一個新的用戶.. 我如何改變我的模型允許這項功能?