I have a Baseclass that i will need to inherit for my models
like
public class Employee : BaseModel
{
}
In this BaseModel I have a couple of properties and some default implementations that needs to be available for every application model created.
When i plan to migrate to entity framework, how do i have the model that is generated with EF have my methods and properties also from the BaseModel.
However, i have removed the EntityObject from the generated class and commented out its related implementation in each property like
//ReportPropertyChanging("id");
//_id = StructuralObject.SetValidValue(value);
//ReportPropertyChanged("id");
Kindly suggest if this is a right way or is there a correct way to deal with this kind of scenario.