public WXMLModel() { _entities = new List <EntityDefinition>(); _relations = new List <RelationDefinitionBase>(); //_selfRelations = new List<SelfRelationDescription>(); _sourceFragments = new List <SourceFragmentDefinition>(); _types = new List <TypeDefinition>(); _userComments = new List <string>(); _systemComments = new List <string>(); _includes = new IncludesCollection(this); Assembly ass = Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly(); _appName = ass.GetName().Name; _appVersion = ass.GetName().Version.ToString(4); EnableReadOnlyPropertiesSetter = false; //GenerateEntityName = true; }
public OrmObjectsDef() { _entities = new List <EntityDescription>(); _relations = new List <RelationDescription>(); _selfRelations = new List <SelfRelationDescription>(); _tables = new List <TableDescription>(); _types = new List <TypeDescription>(); _userComments = new List <string>(); _systemComments = new List <string>(); _includes = new IncludesCollection(this); Assembly ass = Assembly.GetEntryAssembly(); if (ass == null) { ass = Assembly.GetCallingAssembly(); } _appName = ass.GetName().Name; _appVersion = ass.GetName().Version.ToString(4); }