diff --git a/src/Coldairarrow.Api/BuildCodeTemplate/Business.txt b/src/Coldairarrow.Api/BuildCodeTemplate/Business.txt index a63d8f0245ba225e57e721c2b768aaca08553d98..f15946e7f4380b47888422a6dae9d0d8c4d3a97f 100644 --- a/src/Coldairarrow.Api/BuildCodeTemplate/Business.txt +++ b/src/Coldairarrow.Api/BuildCodeTemplate/Business.txt @@ -10,7 +10,7 @@ using System.Threading.Tasks; namespace Coldairarrow.Business.%areaName% { - public class %entityName%Business : BaseBusiness<%entityName%>, I%entityName%Business, ITransientDependency + public partial class %entityName%Business : BaseBusiness<%entityName%>, I%entityName%Business, ITransientDependency { public %entityName%Business(IDbAccessor db) : base(db) diff --git a/src/Coldairarrow.Api/BuildCodeTemplate/Controller.txt b/src/Coldairarrow.Api/BuildCodeTemplate/Controller.txt index ccbd6f57bcd53f66c9bb59f2cd8766c45a776f66..bec671264b0b19a3a9596a86dc60a76d7cab1a75 100644 --- a/src/Coldairarrow.Api/BuildCodeTemplate/Controller.txt +++ b/src/Coldairarrow.Api/BuildCodeTemplate/Controller.txt @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace Coldairarrow.Api.Controllers.%areaName% { [Route("/%areaName%/[controller]/[action]")] - public class %entityName%Controller : BaseApiController + public partial class %entityName%Controller : BaseApiController { #region DI diff --git a/src/Coldairarrow.Api/BuildCodeTemplate/IBusiness.txt b/src/Coldairarrow.Api/BuildCodeTemplate/IBusiness.txt index 52f99f9017a76cafced29b7f51afa1ece555eba9..2483a3eca7d7b1b5ca89fda7439faae52c70d2c5 100644 --- a/src/Coldairarrow.Api/BuildCodeTemplate/IBusiness.txt +++ b/src/Coldairarrow.Api/BuildCodeTemplate/IBusiness.txt @@ -5,7 +5,7 @@ using System.Threading.Tasks; namespace Coldairarrow.Business.%areaName% { - public interface I%entityName%Business + public partial interface I%entityName%Business { Task> GetDataListAsync(PageInput input); Task<%entityName%> GetTheDataAsync(string id); diff --git a/src/Coldairarrow.Util/DataAccess/DbHelper.cs b/src/Coldairarrow.Util/DataAccess/DbHelper.cs index 497a04d47cea3308a566ac96c9f76ae9398f3dd5..492019c8819f5a3da2623e7ae4fe8c44e8070539 100644 --- a/src/Coldairarrow.Util/DataAccess/DbHelper.cs +++ b/src/Coldairarrow.Util/DataAccess/DbHelper.cs @@ -284,7 +284,7 @@ namespace {nameSpace} /// {tableDescription} /// [Table(""{tableName}""{schema})] - public class {tableName} + public partial class {tableName} {{ {properties} }}