예제 #1
0
        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);
        }
예제 #2
0
 public static EntityMapping <TEntity> Inheritance <TEntity>(this EntityMapping <TEntity> entityMapping,
                                                             InheritanceMappingAttribute inheritance) where TEntity : class
 {
     entityMapping.InheritanceMappingAttribute.Add(inheritance);
     return(entityMapping);
 }