public static string PathOutputTransactionScriptIEntityRepository(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassInfra, configContext.UsePathProjects); pathOutput = Path.Combine(pathBase, "Interfaces", tableInfo.ClassName, string.Format("I{0}Repository.{1}", tableInfo.ClassName, "cs")); PathOutputBase.MakeDirectory(pathBase, "Interfaces", tableInfo.ClassName); return(pathOutput); }
public static string PathOutputDbContext(Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassDomain); pathOutput = Path.Combine(pathBase, "Context", string.Format("DbContext{0}.{1}", configContext.Module, "cs")); PathOutputBase.MakeDirectory("Context", pathBase); return(pathOutput); }
public static string PathOutputApp(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassApp); pathOutput = Path.Combine(pathBase, "Services", tableInfo.ClassName, string.Format("{0}ServiceBase.{1}", tableInfo.ClassName, "cs")); PathOutputBase.MakeDirectory(pathBase, "Services", tableInfo.ClassName); return(pathOutput); }
public static string PathOutputDtoSpecializedDetail(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassDto); pathOutput = Path.Combine(pathBase, "Dto", tableInfo.ClassName, string.Format("{0}DtoDetail.{1}", tableInfo.ClassName, "cs")); PathOutputBase.MakeDirectory(pathBase, "Dto", tableInfo.ClassName); return(pathOutput); }
public static string PathOutputApiPartial(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassApi); pathOutput = Path.Combine(pathBase, "Controllers", string.Format("{0}Controller.{1}", tableInfo.ClassName, "cs")); PathOutputBase.MakeDirectory("Controllers", pathBase); return(pathOutput); }
public static string PathOutputAutoMapperProfile(Context configContext, TableInfo tableInfo) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassApp); pathOutput = Path.Combine(pathBase, "Config", string.Format("DomainToDto{0}.{1}", configContext.Module, "cs")); PathOutputBase.MakeDirectory("Config", pathBase); return(pathOutput); }
public static string PathOutputFilter(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassFilter, configContext.UsePathProjects); pathOutput = Path.Combine(pathBase, "FiltersTransaction", tableInfo.ClassName, string.Format("{0}Filter.{1}", tableInfo.ClassName, "cs")); PathOutputBase.MakeDirectory(pathBase, "FiltersTransaction", tableInfo.ClassName); return(pathOutput); }
public static string PathOutputTransactionScriptDtoSpecialized(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassDto, configContext.UsePathProjects); pathOutput = Path.Combine(pathBase, "DtoTransaction", tableInfo.ClassName, string.Format("{0}DtoSpecialized.ext.{1}", tableInfo.ClassName, "cs")); PathOutputBase.MakeDirectory(pathBase, "DtoTransaction", tableInfo.ClassName); return(pathOutput); }
public static string PathOutputTransactionScriptApiHealth(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassApi, configContext.UsePathProjects); pathOutput = Path.Combine(pathBase, "Controllers", string.Format("healthController.{0}", "cs")); PathOutputBase.MakeDirectory("Controllers", pathBase); return(pathOutput); }
public static string PathOutputFilterPartial(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassFilter); var fileName = tableInfo.ClassName; pathOutput = Path.Combine(pathBase, "Filters", fileName, string.Format("{0}Filter.{1}", fileName, "cs")); PathOutputBase.MakeDirectory(pathBase, "Filters", fileName); return(pathOutput); }
public static string PathOutputMapsPartial(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassDomain); pathOutput = Path.Combine(pathBase, "Maps", tableInfo.ClassName, string.Format("{0}Map.{1}", tableInfo.ClassName, "cs")); PathOutputBase.MakeDirectory(pathBase, "Maps", tableInfo.ClassName); return(pathOutput); }
public static string PathOutputAngular20ComponentAppCustomRouting(Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputAngular, configContext.UsePathProjects); pathOutput = pathAppFile(pathBase, "app.custom.routing.ts"); PathOutputBase.MakeDirectory(pathAppDirectory(pathBase)); return(pathOutput); }
public static string PathOutputAngular20MainServiceReources(Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputAngular, configContext.UsePathProjects); pathOutput = pathComponentDirectory(pathBase, "main.service.resource.ts"); PathOutputBase.MakeDirectory(pathAppDirectory(pathBase)); return(pathOutput); }
public static string PathOutputTransactionScriptApiContainerPartial(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassApi, configContext.UsePathProjects); pathOutput = Path.Combine(pathBase, "ConfigTransaction", string.Format("ConfigContainer{0}.ext.{1}", configContext.Module, "cs")); PathOutputBase.MakeDirectory("ConfigTransaction", pathBase); return(pathOutput); }
public static string PathOutputAngular20ComponentModuleTs(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var className = tableInfo.ClassName.ToLower(); var pathBase = PathOutputBase.PathBase(configContext.OutputAngular, configContext.UsePathProjects); pathOutput = pathComponentFile(pathBase, className, "module.ts"); PathOutputBase.MakeDirectory(pathComponentDirectory(pathBase, className)); return(pathOutput); }
public static string PathOutputContainerPartial(Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassApi); pathOutput = Path.Combine(pathBase, "Config", string.Format("ConfigContainer{0}.ext.{1}", configContext.Module, "cs")); PathOutputBase.MakeDirectory("Config", pathBase); return(pathOutput); }
public static string PathOutputAutoMapper(Context configContext) { var pathOutput = string.Empty; var pathBase = PathOutputBase.PathBase(configContext.OutputClassApp); pathOutput = Path.Combine(pathBase, "Config", string.Format("AutoMapperConfig{0}.{1}", configContext.Module, "cs")); PathOutputBase.MakeDirectory("Config", pathBase); return(pathOutput); }
public static string PathOutputAngularGridGeneratedComponentHtml(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var className = tableInfo.ClassName.ToLower(); var pathBase = configContext.OutputAngular; pathOutput = Path.Combine(pathBase, "views", tableInfo.ClassName.ToLower(), "grid", "generated", string.Format("{0}-grid.generated.component.{1}", tableInfo.ClassName.ToLower(), "html")); PathOutputBase.MakeDirectory(pathBase, "views", tableInfo.ClassName.ToLower(), "grid", "generated"); return(pathOutput); }
public static string PathOutputAngularModule(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var className = tableInfo.ClassName.ToLower(); var pathBase = configContext.OutputAngular; pathOutput = Path.Combine(pathBase, "views", tableInfo.ClassName.ToLower(), string.Format("{0}.module.{1}", tableInfo.ClassName.ToLower(), "ts")); PathOutputBase.MakeDirectory(pathBase, "views", tableInfo.ClassName.ToLower()); return(pathOutput); }
public static string PathOutputAngularModelFilterGenerated(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var className = tableInfo.ClassName.ToLower(); var pathBase = configContext.OutputAngular; pathOutput = Path.Combine(pathBase, "models", string.Format("{0}.generated.filter.{1}", tableInfo.ClassName.ToLower(), "ts")); PathOutputBase.MakeDirectory("models", pathBase); return(pathOutput); }
public static string PathOutputAngularRoutingGenerated(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var className = tableInfo.ClassName.ToLower(); var pathBase = configContext.OutputAngular; pathOutput = Path.Combine(pathBase, "routing", string.Format("routing.generated.module.{0}", "ts")); PathOutputBase.MakeDirectory("routing", pathBase); return(pathOutput); }
public static string PathOutputVueRouterViewComponent(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var className = tableInfo.ClassName.ToLower(); var pathBase = configContext.OutputAngular; pathOutput = Path.Combine(pathBase, "router", string.Format("generated.js")); PathOutputBase.MakeDirectory(pathBase, "router"); return(pathOutput); }
public static string PathOutputVueIndexViewComponent(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var className = tableInfo.ClassName.ToLower(); var pathBase = configContext.OutputAngular; pathOutput = Path.Combine(pathBase, "views", className, string.Format("index.vue")); PathOutputBase.MakeDirectory(pathBase, "views", tableInfo.ClassName.ToLower()); return(pathOutput); }
public static string PathOutputVueViewComponent(TableInfo tableInfo, Context configContext, string viewName) { var pathOutput = string.Empty; var className = tableInfo.ClassName.ToLower(); var pathBase = configContext.OutputFrontend; pathOutput = Path.Combine(pathBase, "views", className, string.Format("{0}.vue", viewName)); PathOutputBase.MakeDirectory(pathBase, "views", tableInfo.ClassName.ToLower()); return(pathOutput); }
public static string PathOutputAngular20SubComponentPrintCss(TableInfo tableInfo, Context configContext) { var pathOutput = string.Empty; var className = tableInfo.ClassName.ToLower(); var pathBase = PathOutputBase.PathBase(configContext.OutputAngular, configContext.UsePathProjects); pathOutput = pathSubComponentFile(pathBase, className, "print", "component.css"); PathOutputBase.MakeDirectory(pathSubComponentDirectory(pathBase, className, "print")); return(pathOutput); }
public static string PathOutputAngular20SubComponentEditContainer(TableInfo tableInfo, Context configContext, string extension) { var pathOutput = string.Empty; var className = tableInfo.ClassName.ToLower(); var pathBase = PathOutputBase.PathBase(configContext.OutputAngular, configContext.UsePathProjects); pathOutput = pathSubComponentFile(pathBase, className, "container-edit", string.Format("component.{0}", extension)); PathOutputBase.MakeDirectory(pathSubComponentDirectory(pathBase, className, "container-edit")); return(pathOutput); }
public static void MakeDirectory(string pathBase, params string[] paths) { PathOutputBase.MakeDirectory(Path.Combine(paths), pathBase); }