I have an Entity Class that is auto generated that I need to add some things do. I tried creating a new class and then trying to unbox and rebox it into my new class but that seemed like a lot of work.
Is there a better way to still take advantage of the Entity models but be able to add custom things to the classes?
public partial class SaveQuotes
{
public int TableID {get; set;} // Auto Generated
public string Column1 {get; set;} // Auto Generated
public string Column2 {get; set;} // Auto Generated
// My custom additions needed
public List<EdmundsVehicleInfo> EdmundsVehicleInfo {get; set;}
public List<EdmundsPhoto> EdmundsPhoto {get; set;}
// Auto Generated
public virtual ContractTypes ContractTypes {get; set;}
}
Now if I update the model, my custom stuff is removed because it re-writes the file. I'm sure there is a way to add things to this class somewhere without it being re-written?