Module: SmartSql.StarterAuthor: Ahoo WangDataSource:Name: DbTableParameters:DbName: SmartSqlTestDBDbProvider: SqlServerConnectionString: Data Source=.;Initial Catalog=SmartSqlTestDB;Integrated Security=TrueLanguage: CSharpTemplateEngine:Name: RazorRoot: CSharpOutput:Type: FilePath: 'D:\SmartSql-Starter'Parameters:SmartSqlVersion: '4.1.42'SmartSqlSchemaVersion: '4.1.30'BuildDir: 'D:\SmartSql-Starter\build'DockerImage: 'smartsql.starter'NamingConverter:Table:Tokenizer:Type: DefaultParameters:IgnorePrefix: 'T_'Delimiter: '_'Converter:Type: PascalParameters: { }View:Tokenizer:Type: DefaultParameters:IgnorePrefix: 'V_'Delimiter: '_'Converter:Type: PascalColumn:Tokenizer:Type: DefaultParameters:Delimiter: '_'Converter:Type: PascalTableFilter:IgnoreNoPKTable: trueIgnoreView: true# 构建任务Build:# ClearDir:# Type: Clear# Parameters:# Dirs: '.'MakeBuildDir:Type: ProcessParameters:FileName: powershellArgs: mkdir '{{Project.Parameters.BuildDir}}'Copy:Type: ProcessParameters:FileName: powershellArgs: cp '{{Project.ConfigPath}}' '{{Project.Parameters.BuildDir}}'Scaffolding:Type: MultiTemplateOutput:Path: '.'Parameters:Templates: [{Key: 'Sln.cshtml',Output: {Name: '{{Project.Module}}',Extension: '.sln'}},{Key: 'Sln-Directory.Build.cshtml',Output: {Name: 'Directory.Build',Extension: '.props'}},{Key: 'Sln-Version.cshtml',Output: {Path: 'build',Name: 'version',Extension: '.props'}},{Key: 'Sln-Dockerfile.cshtml',Output: {Name: 'Dockerfile',Extension: ''}},{Key: 'Sln-DockerIgnore.cshtml',Output: {Name: '.dockerignore',Extension: ''}},{Key: 'Sln-GitIgnore.cshtml',Output: {Name: '.gitignore',Extension: ''}},{Key: "Proj-Entity.cshtml",Output: {Path: 'src/{{Project.Module}}.Entity',Name: '{{Project.Module}}.Entity',Extension: '.csproj'}},{Key: "Proj-Repository.cshtml",Output: {Path: 'src/{{Project.Module}}.Repository',Name: '{{Project.Module}}.Repository',Extension: '.csproj'}},{Key: "Proj-Service.cshtml",Output: {Path: 'src/{{Project.Module}}.Service',Name: '{{Project.Module}}.Service',Extension: '.csproj'}},{Key: "Proj-API.cshtml",Output: {Path: 'src/{{Project.Module}}.API',Name: '{{Project.Module}}.API',Extension: '.csproj'}},{Key: "API/LaunchSettings.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Properties',Name: 'launchSettings',Extension: '.json'}},{Key: "API/AppSettings.cshtml",Output: {Path: 'src/{{Project.Module}}.API',Name: 'appsettings',Extension: '.json'}},{Key: "API/AppSettings-Development.cshtml",Output: {Path: 'src/{{Project.Module}}.API',Name: 'appsettings.Development',Extension: '.json'}},{Key: "API/Program.cshtml",Output: {Path: 'src/{{Project.Module}}.API',Name: 'Program',Extension: '.cs'}},{Key: "API/Startup.cshtml",Output: {Path: 'src/{{Project.Module}}.API',Name: 'Startup',Extension: '.cs'}},{Key: "API/APIException.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Exceptions',Name: 'APIException',Extension: '.cs'}},{Key: "API/GlobalExceptionFilter.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Filters',Name: 'GlobalExceptionFilter',Extension: '.cs'}},{Key: "API/GlobalValidateModelFilter.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Filters',Name: 'GlobalValidateModelFilter',Extension: '.cs'}},{Key: "API/QueryRequest.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Messages',Name: 'QueryRequest',Extension: '.cs'}},{Key: "API/QueryByPageRequest.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Messages',Name: 'QueryByPageRequest',Extension: '.cs'}},{Key: "API/ResponseMessage.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Messages',Name: 'ResponseMessage',Extension: '.cs'}},{Key: "API/QueryResponse.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Messages',Name: 'QueryResponse',Extension: '.cs'}},{Key: "API/QueryByPageResponse.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Messages',Name: 'QueryByPageResponse',Extension: '.cs'}},{Key: "API/ResponseMessage.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Messages',Name: 'ResponseMessage',Extension: '.cs'}},{Key: "SqlMapConfig.cshtml",Output: {Path: 'src/{{Project.Module}}.Repository',Name: 'SmartSqlMapConfig',Extension: '.xml'}},{Key: "SqlMapConfig.cshtml",Output: {Path: 'src/{{Project.Module}}.Repository',Name: 'SmartSqlMapConfig.Development',Extension: '.xml'}}]Entity:Type: TableModule: EntityTemplateEngine:Path: Entity.cshtmlIgnoreNoPKTable: falseIgnoreView: falseOutput:Path: 'src/{{Project.Module}}.{{Build.Module}}'Name: '{{Items.CurrentTable.ConvertedName}}'Extension: '.cs'Repository:Type: TableModule: RepositoryTemplateEngine:Path: Repository.cshtmlOutput:Path: 'src/{{Project.Module}}.{{Build.Module}}'Name: 'I{{Items.CurrentTable.ConvertedName}}Repository'Extension: .csService:Type: TableModule: ServiceTemplateEngine:Path: Service.cshtmlOutput:Path: 'src/{{Project.Module}}.{{Build.Module}}'Name: '{{Items.CurrentTable.ConvertedName}}Service'Extension: .csAPIController:Type: TableModule: APITemplateEngine:Path: API/APIController.cshtmlOutput:Path: 'src/{{Project.Module}}.{{Build.Module}}/Controllers'Name: '{{Items.CurrentTable.ConvertedName}}Controller'Extension: .csSqlMap:Type: TableTemplateEngine:Path: SqlMap.cshtmlOutput:Path: 'src/{{Project.Module}}.Repository/Maps'Name: '{{Items.CurrentTable.ConvertedName}}'Extension: .xml# Please install dotnet-format first!# dotnet tool install -g dotnet-formatCodeFormat:Type: ProcessParameters:FileName: powershellWorkingDirectory: '{{Project.Output.Path}}'Args: dotnet-formatReStore:Type: ProcessParameters:FileName: powershellWorkingDirectory: '{{Project.Output.Path}}'Args: dotnet restore# BuildDocker:# Type: Process# Parameters:# FileName: powershell# WorkingDirectory: '{{Project.Output.Path}}'# Args: docker build -t {{Project.Parameters.DockerImage}}:v1.0.0 .# RunDocker:# Type: Process# Parameters:# FileName: powershell# WorkingDirectory: '{{Project.Output.Path}}'# Args: docker run --name {{Project.Parameters.DockerImage}} --rm -d -p 8008:80 {{Project.Parameters.DockerImage}}:v1.0.0 .# Publish:# Type: Process# Parameters:# FileName: powershell# WorkingDirectory: '{{Project.Output.Path}}'# Args: dotnet publish -c Release -o '{{Project.Output.Path}}\publish'# Run:# Type: Process# Parameters:# FileName: powershell# WorkingDirectory: '{{Project.Output.Path}}\publish'# CreateNoWindow: false# RedirectStandardOutput: false# RedirectStandardError: false# WaitForExit: false# WriteLines: ['dotnet {{Project.Module}}.API.dll']# RunChrome:# Type: Process# Parameters:# FileName: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe# CreateNoWindow: false# Args: http://localhost:8008/swagger
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。