public static EntityMapping <TEntity> Inheritance <TEntity>(this EntityMapping <TEntity> entityMapping, string code, Type inheritanceType, bool isDefault) where TEntity : class { var inheritance = new InheritanceMappingAttribute { Code = code, Type = inheritanceType, IsDefault = isDefault }; entityMapping.InheritanceMappingAttribute.Add(inheritance); return(entityMapping); }
public static EntityMapping <TEntity> Inheritance <TEntity>(this EntityMapping <TEntity> entityMapping, InheritanceMappingAttribute inheritance) where TEntity : class { entityMapping.InheritanceMappingAttribute.Add(inheritance); return(entityMapping); }