// Generates all of the Web Forms Pages (Default Insert, Edit, Delete), private void AddControllers( Project project, string selectionRelativePath, string dbContextNamespace, string dbContextTypeName, CodeType modelType, bool overwriteViews = true ) { if (modelType == null) { throw new ArgumentNullException("modelType"); } var webForms = new[] { "Controller" }; // Now add each view foreach (string webForm in webForms) { AddControllerTemplates( selectionRelativePath: selectionRelativePath, modelType: modelType, dbContextNamespace: dbContextNamespace, dbContextTypeName: dbContextTypeName, webFormsName: webForm, overwrite: overwriteViews); } }
// Generates all of the Web Forms Pages (Default Insert, Edit, Delete), private void AddStorageContexts( Project project, string selectionRelativePath, string dbContextNamespace, string dbContextTypeName, CodeType modelType, bool useMasterPage, string masterPage = null, bool overwriteViews = true ) { if (modelType == null) { throw new ArgumentNullException("modelType"); } var webForms = new[] { "StorageContext", "StorageContext.KeyHelpers" }; // Now add each view foreach (string webForm in webForms) { AddStorageContextTemplates( selectionRelativePath: selectionRelativePath, modelType: modelType, dbContextNamespace: dbContextNamespace, dbContextTypeName: dbContextTypeName, webFormsName: webForm, overwrite: overwriteViews); } }
// Generates all of the Web Forms Pages (Default Insert, Edit, Delete), private void AddWebFormsPages( Project project, string selectionRelativePath, string dbContextNamespace, string dbContextTypeName, CodeType modelType, bool overwriteViews = true ) { if (modelType == null) { throw new ArgumentNullException("modelType"); } var webForms = new[] { "Index", "Create", "Edit", "Delete", "Details", "Resources" }; // Now add each view foreach (string webForm in webForms) { AddWebFormsViewTemplates( selectionRelativePath: selectionRelativePath, modelType: modelType, dbContextNamespace: dbContextNamespace, dbContextTypeName: dbContextTypeName, webFormsName: webForm, overwrite: overwriteViews); } }