Example #1
0
        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);
        }
		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);
		}
Example #3
0
        static APGenNamespacesSection()
        {
            namespacesProp = new APGenProperty("", typeof(APGenNamespaceCollection), null, null, null, APGenPropertyOptions.IsDefaultCollection);

            properties = new APGenPropertyCollection();
            properties.Add(namespacesProp);
        }
		static APGenNamespacesSection()
		{
			namespacesProp = new APGenProperty("", typeof(APGenNamespaceCollection), null, null, null, APGenPropertyOptions.IsDefaultCollection);

			properties = new APGenPropertyCollection();
			properties.Add(namespacesProp);
		}
Example #5
0
        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);
		}
Example #7
0
		static APGenNamespace()
		{
			importProp = new APGenProperty(
				"import", 
				typeof(string), 
				null, 
				APCVHelper.WhiteSpaceTrimStringConverter, 
				APCVHelper.NonEmptyStringValidator, 
				APGenPropertyOptions.IsRequired | APGenPropertyOptions.IsKey
				);

			properties = new APGenPropertyCollection();
			properties.Add(importProp);
		}
Example #8
0
        static APGenNamespace()
        {
            importProp = new APGenProperty(
                "import",
                typeof(string),
                null,
                APCVHelper.WhiteSpaceTrimStringConverter,
                APCVHelper.NonEmptyStringValidator,
                APGenPropertyOptions.IsRequired | APGenPropertyOptions.IsKey
                );

            properties = new APGenPropertyCollection();
            properties.Add(importProp);
        }
Example #9
0
        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);
        }
Example #10
0
		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);
		}
Example #11
0
        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);
        }
Example #12
0
		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);
		}
Example #13
0
        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);
        }
Example #14
0
		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);
		}
Example #15
0
		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);
		}
Example #16
0
        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);
        }