Inheritance EF Code-First
问题 I have a base object that I dont want to be mapped in DB as an entity, I only want the properties to be added to the object that is mapped in the DB : Not mapped object (dont know if it matters but baseobject is in another assembly): public class BaseObject { public virtual string Prop1 { get; set; } public virtual string Prop2 { get; set; } } Mapped object: public class ChildObject : BaseObject { public virtual string Prop3 { get; set; } public virtual string Prop4 { get; set; } public