internal FunctionsHelper(Table table, Tables selectedTables, string webAppName, string apiName, string webAppRootDirectory, bool isUseWebApi, bool isUseAuditLogging, GeneratedSqlType generatedSqlType, bool isEmailNotification)
 {
     this._table                  = table;
     this._selectedTables         = selectedTables;
     this._webAppRootDirectory    = webAppRootDirectory + "Pages\\";
     this._webAppName             = webAppName;
     this._apiName                = apiName;
     this._isUseWebApi            = isUseWebApi;
     this._isUseAuditLogging      = isUseAuditLogging;
     this._commaDelimitedColNames = new StringBuilder();
     this._directory              = webAppRootDirectory + "Helper\\";
     this._businessObjectName     = Functions.GetFullyQualifiedTableName(this._table, this._selectedTables, Language.CSharp, this._table.NameFullyQualifiedBusinessObject, apiName);
     this._generatedSqlType       = generatedSqlType;
     this._isEmailNotification    = isEmailNotification;
     this._controllerBaseType     = !isUseWebApi ? ControllerBaseType.ControllerBase : ControllerBaseType.ApiControllerBase;
     this.Generate();
 }
Exemple #2
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);
 }