static NameValueAPGenElement() { _nameProp = new APGenProperty("name", typeof(string), "", APGenPropertyOptions.IsKey); _valueProp = new APGenProperty("value", typeof(string), ""); _properties = new APGenPropertyCollection(); _properties.Add(_nameProp); _properties.Add(_valueProp); }
static KeyValueAPGenElement() { _keyProp = new APGenProperty("key ", typeof(string), "", APGenPropertyOptions.IsKey); _valueProp = new APGenProperty("value", typeof(string), ""); _properties = new APGenPropertyCollection(); _properties.Add(_keyProp); _properties.Add(_valueProp); }
static APGenNamespacesSection() { namespacesProp = new APGenProperty("", typeof(APGenNamespaceCollection), null, null, null, APGenPropertyOptions.IsDefaultCollection); properties = new APGenPropertyCollection(); properties.Add(namespacesProp); }
static APGenEnumsSection() { enabledProp = new APGenProperty("enabled", typeof(bool), true); namespaceProp = new APGenProperty("namespace", typeof(string), null); enumsProp = new APGenProperty( "", typeof(APGenEnumCollection), null, null, null, APGenPropertyOptions.IsDefaultCollection ); properties = new APGenPropertyCollection(); properties.Add(enabledProp); properties.Add(enumsProp); }
static APGenDalProvider() { nameProp = new APGenProperty( "name", typeof(string), null, APCVHelper.WhiteSpaceTrimStringConverter, APCVHelper.NonEmptyStringValidator, APGenPropertyOptions.IsRequired ); typeProp = new APGenProperty( "type", typeof(string), null, APCVHelper.WhiteSpaceTrimStringConverter, APCVHelper.NonEmptyStringValidator, APGenPropertyOptions.IsRequired ); connectionStringProp = new APGenProperty( "connectionString", typeof(string), null, APCVHelper.WhiteSpaceTrimStringConverter, APCVHelper.NonEmptyStringValidator, APGenPropertyOptions.IsRequired ); providerNameProp = new APGenProperty( "providerName", typeof(string), null, APCVHelper.WhiteSpaceTrimStringConverter, APCVHelper.NonEmptyStringValidator, APGenPropertyOptions.None ); properties = new APGenPropertyCollection(); properties.Add(nameProp); properties.Add(typeProp); properties.Add(connectionStringProp); properties.Add(providerNameProp); }
static APGenEnumItem() { nameProp = new APGenProperty( "name", typeof(string), null, APCVHelper.WhiteSpaceTrimStringConverter, APCVHelper.PropertyNameValidator, APGenPropertyOptions.IsRequired | APGenPropertyOptions.IsKey ); defaultValueProp = new APGenProperty("defaultValue", typeof(string), null); dictionaryNameProp = new APGenProperty("dictionaryName", typeof(string), ""); commentProp = new APGenProperty("comment", typeof(string)); properties = new APGenPropertyCollection(); properties.Add(nameProp); properties.Add(defaultValueProp); properties.Add(dictionaryNameProp); properties.Add(commentProp); }
static APGenEnum() { nameProp = new APGenProperty( "name", typeof(string), null, APCVHelper.WhiteSpaceTrimStringConverter, APCVHelper.PropertyNameValidator, APGenPropertyOptions.IsRequired | APGenPropertyOptions.IsKey ); enabledProp = new APGenProperty("enabled", typeof(bool), true); isFlagsProp = new APGenProperty("isFlags", typeof(bool), false); commentProp = new APGenProperty("comment", typeof(string)); enumItemsProp = new APGenProperty("", typeof(APGenEnumItemCollection), null, null, null, APGenPropertyOptions.IsDefaultCollection); properties = new APGenPropertyCollection(); properties.Add(nameProp); properties.Add(enabledProp); properties.Add(isFlagsProp); properties.Add(commentProp); properties.Add(enumItemsProp); }
static APGenNamespace() { importProp = new APGenProperty( "import", typeof(string), null, APCVHelper.WhiteSpaceTrimStringConverter, APCVHelper.NonEmptyStringValidator, APGenPropertyOptions.IsRequired | APGenPropertyOptions.IsKey ); properties = new APGenPropertyCollection(); properties.Add(importProp); }
static APGenBusinessModelSection() { enabledProp = new APGenProperty("enabled", typeof(bool), true); namespaceProp = new APGenProperty("namespace", typeof(string), null); dbPrefixProp = new APGenProperty("dbPrefix", typeof(string), null); defPrefixProp = new APGenProperty("defPrefix", typeof(string), null); providerNameProp = new APGenProperty("providerName", typeof(string), null); mainPartProp = new APGenProperty("mainPart", typeof(bool), true); autoSyncDatabaseProp = new APGenProperty("autoSyncDatabase", typeof(bool), false); autoInitDatabaseProp = new APGenProperty("autoInitDatabase", typeof(bool), false); providerProp = new APGenProperty("provider", typeof(APGenDalProvider), null); tablesProp = new APGenProperty("tables", typeof(APGenTableCollection)); viewsProp = new APGenProperty("views", typeof(APGenTableCollection)); relationsProp = new APGenProperty("relations", typeof(APGenRelationCollection)); properties = new APGenPropertyCollection(); properties.Add(enabledProp); properties.Add(namespaceProp); properties.Add(dbPrefixProp); properties.Add(defPrefixProp); properties.Add(providerNameProp); properties.Add(mainPartProp); properties.Add(autoSyncDatabaseProp); properties.Add(autoInitDatabaseProp); properties.Add(providerProp); properties.Add(tablesProp); properties.Add(viewsProp); properties.Add(relationsProp); }