internal BusinessAndDataObjectsView(Tables selectedTables, string directory, Language language, string webAppName, DatabaseObjectToGenerateFrom generateFrom, ApplicationVersion appVersion, bool isUseStoredProcedure, IsCheckedView isCheckedView, ViewNames viewNames, bool isUseWebApi, bool isFormsGenProduct, int spPrefixSuffixIndex, string storedProcPrefix, string storedProcSuffix, string apiName)
 {
     this._selectedTables               = selectedTables;
     this._directory                    = directory + MyConstants.DirectoryRazorPage + "Home\\";
     this._language                     = language;
     this._webAppName                   = webAppName.Trim();
     this._isUseStoredProcedure         = isUseStoredProcedure;
     this._spPrefixSuffixIndex          = spPrefixSuffixIndex;
     this._storedProcPrefix             = storedProcPrefix;
     this._storedProcSuffix             = storedProcSuffix;
     this._generateFrom                 = generateFrom;
     this._appVersion                   = appVersion;
     this._isCheckedView                = isCheckedView;
     this._viewNames                    = viewNames;
     this._isUseWebApi                  = isUseWebApi;
     this._isFormsGenProduct            = isFormsGenProduct;
     this._categoryTitleBackgroundColor = "#507CD1";
     this._alternateBackgroundColor     = "#F5F5F5";
     this._apiName = apiName;
     if (language == Language.VB)
     {
         this._fileExtension = ".vb";
     }
     this.Generate();
 }
예제 #2
0
 internal GeneratedCodeHtm(string fullFileNamePath, string appTitle, Tables selectedTables, DataTable referencedTables, Language language, string path, bool isUseStoredProcedure, int spPrefixSuffixIndex, string storedProcPrefix, string storedProcSuffix, DatabaseObjectToGenerateFrom generateFrom, ApplicationVersion appVersion, bool isFormsGenProduct = true, ApplicationType appType = ApplicationType.ASPNET)
 {
     this._fullFileNamePath     = fullFileNamePath;
     this._appTitle             = appTitle;
     this._selectedTables       = selectedTables;
     this._referencedTables     = referencedTables;
     this._directory            = path;
     this._language             = language;
     this._fileExtension        = this._language != Language.CSharp ? ".vb" : ".cs";
     this._isUseStoredProcedure = isUseStoredProcedure;
     this._spPrefixSuffixIndex  = spPrefixSuffixIndex;
     this._storedProcPrefix     = storedProcPrefix;
     this._storedProcSuffix     = storedProcSuffix;
     this._generateFrom         = generateFrom;
     this._appVersion           = appVersion;
     this._isFormsGenProduct    = isFormsGenProduct;
     this._appType = appType;
     if (this._appType == ApplicationType.ASPNET45)
     {
         this._categoryTitleBackgroundColor = "#6D00D9";
         this._alternateBackgroundColor     = "#F2E6FF";
     }
     else
     {
         this._categoryTitleBackgroundColor = "#507CD1";
         this._alternateBackgroundColor     = "#F5F5F5";
     }
     this.Generate();
 }
예제 #3
0
 internal DefaultHtm(string fullFileNamePath, string appTitle, Tables selectedTables, Language language, bool isOrganizeGeneratedWebForms, OrganizeWebForm organizeWebForm, IsCheckedWebForm isCheckedWebForm, DatabaseObjectToGenerateFrom generateFrom, DataTable referencedTables, ApplicationVersion appVersion, ApplicationType appType, bool isUseFriendlyUrls = false)
 {
     this._fullFileNamePath            = fullFileNamePath;
     this._appTitle                    = appTitle;
     this._selectedTables              = selectedTables;
     this._referencedTables            = referencedTables;
     this._language                    = language;
     this._isOrganizeGeneratedWebForms = isOrganizeGeneratedWebForms;
     this._organizeWebForm             = organizeWebForm;
     this._isCheckedWebForm            = isCheckedWebForm;
     this._generateFrom                = generateFrom;
     this._referencingTable            = (Table)null;
     this._appVersion                  = appVersion;
     this._appType           = appType;
     this._isUseFriendlyUrls = isUseFriendlyUrls;
     if (this._appType == ApplicationType.ASPNET45)
     {
         this._categoryTitleBackgroundColor = "#6D00D9";
         this._alternateBackgroundColor     = "#F2E6FF";
     }
     else
     {
         this._categoryTitleBackgroundColor = "#507CD1";
         this._alternateBackgroundColor     = "#F5F5F5";
     }
     this.Generate();
 }
예제 #4
0
 internal DynamicSql(Table table, Tables selectedTables, string apiName, string apiNameDirectory, DatabaseObjectToGenerateFrom generateFrom, bool isSqlVersion2012OrHigher = false)
 {
     this._table                    = table;
     this._selectedTables           = selectedTables;
     this._apiName                  = apiName;
     this._apiNameDirectory         = apiNameDirectory + MyConstants.DirectoryDynamicSQL;
     this._generateFrom             = generateFrom;
     this._isSqlVersion2012OrHigher = isSqlVersion2012OrHigher;
     this.Generate();
 }
 internal EfBusinessObject(Table table, Tables selectedTables, DataTable referencedTables, string apiName, string apiNameDirectory, bool isUseStoredProcedure, int spPrefixSuffixIndex, string storedProcPrefix, string storedProcSuffix, DatabaseObjectToGenerateFrom generateFrom)
 {
     this._table                = table;
     this._selectedTables       = selectedTables;
     this._referencedTables     = referencedTables;
     this._apiName              = apiName;
     this._apiNameDirectory     = apiNameDirectory + "\\EF\\";
     this._isUseStoredProcedure = isUseStoredProcedure;
     this._spPrefixSuffixIndex  = spPrefixSuffixIndex;
     this._storedProcPrefix     = storedProcPrefix;
     this._storedProcSuffix     = storedProcSuffix;
     this._generateFrom         = generateFrom;
     this.Generate();
 }
예제 #6
0
 internal StoredProcedure(Table table, string apiNameDirectory, string connectionString, bool isCreateStoredProcInDbase, int spPrefixSuffixIndex, string storedProcPrefix, string storedProcSuffix, DatabaseObjectToGenerateFrom generateFrom, string storedProcedureErrorFilePath, bool isSqlVersion2012OrHigher = false)
 {
     this._table                        = table;
     this._apiNameDirectory             = apiNameDirectory + MyConstants.DirectoryDynamicSQL;
     this._path                         = apiNameDirectory;
     this._connectionString             = connectionString;
     this._dbase                        = new Dbase(connectionString, apiNameDirectory);
     this._isCreateStoredProcInDbase    = isCreateStoredProcInDbase;
     this._spPrefixSuffixIndex          = spPrefixSuffixIndex;
     this._storedProcPrefix             = storedProcPrefix;
     this._storedProcSuffix             = storedProcSuffix;
     this._generateFrom                 = generateFrom;
     this._storedProcedureErrorFilePath = storedProcedureErrorFilePath;
     this._isSqlVersion2012OrHigher     = isSqlVersion2012OrHigher;
     this.Generate();
 }
예제 #7
0
 internal EfDbContext(Tables selectedTables, DataTable referencedTables, string apiName, string apiNameDirectory, bool isUseStoredProcedure, int spPrefixSuffixIndex, string storedProcPrefix, string storedProcSuffix, DatabaseObjectToGenerateFrom generateFrom, string server, string database, string username, string password)
 {
     this._selectedTables       = selectedTables;
     this._referencedTables     = referencedTables;
     this._apiName              = apiName;
     this._apiNameDirectory     = apiNameDirectory + "\\EF\\";
     this._isUseStoredProcedure = isUseStoredProcedure;
     this._spPrefixSuffixIndex  = spPrefixSuffixIndex;
     this._storedProcPrefix     = storedProcPrefix;
     this._storedProcSuffix     = storedProcSuffix;
     this._generateFrom         = generateFrom;
     this._databaseNamePascalAlphaNumericOnly = Functions.ReplaceNoneAlphaNumericWithUnderscore(Functions.ConvertToPascal(database));
     this._server   = server;
     this._database = database;
     this._username = username;
     this._password = password;
     this.Generate();
 }
예제 #8
0
 internal AssignWorkflowStepsModel(MVCGridViewType listViewType, Table table, Tables selectedTables,
                                   string webAppName, string apiName, string webApiName, string webAppRootDirectory, string apiNameDirectory,
                                   string webApiNameDirectory, bool isUseStoredProcedure, bool isSqlVersion2012OrHigher, IsCheckedView isCheckedView,
                                   DatabaseObjectToGenerateFrom generateFrom, ApplicationVersion appVersion,
                                   GeneratedSqlType generatedSqlType, bool isUseLogging, bool isUseCaching, bool isUseAuditLogging, bool isEmailNotification, string connectionString,
                                   ControllerBaseType controllerBaseType = ControllerBaseType.ControllerBase, bool isUseWebApi = false)
 {
     this._table                = table;
     this._selectedTables       = selectedTables;
     this._webAppName           = webAppName;
     this._apiName              = apiName;
     this._webApiName           = webApiName;
     this._webAppRootDirectory  = webAppRootDirectory + "Pages\\";
     this._apiNameDirectory     = apiNameDirectory;
     this._webApiNameDirectory  = webApiNameDirectory;
     this._isUseStoredProcedure = isUseStoredProcedure;
     this._isCheckedView        = isCheckedView;
     this._generateFrom         = generateFrom;
     this._appVersion           = appVersion;
     //this._referencedTables = referencedTables;
     this._colModelNames            = new StringBuilder();
     this._controllerBaseType       = controllerBaseType;
     this._isUseWebApi              = isUseWebApi;
     this._generatedSqlType         = generatedSqlType;
     this._viewType                 = listViewType;
     this._modelName                = Functions.GetFullyQualifiedModelName(table, selectedTables, apiName);
     this._businessObjectName       = Functions.GetFullyQualifiedTableName(this._table, this._selectedTables, Language.CSharp, this._table.NameFullyQualifiedBusinessObject, apiName);
     this._isSqlVersion2012OrHigher = isSqlVersion2012OrHigher;
     this._directory                = webAppRootDirectory + MyConstants.DirectoryControllerBase;
     this._isUseLogging             = isUseLogging;
     this._isUseCaching             = isUseCaching;
     this._isUseAuditLogging        = isUseAuditLogging;
     this._isEmailNotification      = isEmailNotification;
     this._connectionString         = connectionString;
     this.Generate(null, null);
 }