示例#1
0
 public DynamicTypeCodeGenerator(string @namespace, string typeName, DynamicBaseType baseType, DynamicTypeDefinition def, HashSet <string> usings)
 {
     this.Usings    = usings;
     this.Namespace = @namespace;
     this.TypeName  = typeName;
     this.BaseType  = baseType;
     this.Def       = def;
 }
示例#2
0
        private string GetEntityBaseClass(DynamicBaseType baseType)
        {
            if (this.Def.CustomInheritance != null)
            {
                return(this.Def.CustomInheritance.Code);
            }

            return(baseType.ToString());
        }