I'm creating a model in a Sql Server database to support the next scenary.
Persons Table to hold the information of all kind of people that will interact with the application.
Patients Table to hold those persons that are Patients of the medical system.
and Doctors, that are those peoples that attends the patients.
The problems comes, because I want to use model first approach and I'm need to let Entity framework power tools to generate my POCO
classes, so i need that EF Power tools
recognizes this particular scenario, and don't map navigation properties in the Patient Class or the Person class, and instead of this, I need that power tools map an Abstract class for the Person Entity, and a Patient, and Doctor class that inherits from Person Abstract class.
How can I achieve this using model first approach? Since I don't want to manually create code first conventions and write all my classes by myself.
So, please someone help me.