谢谢
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
public static readonly string ConnectionString = "Server=123.56.181.144,14333\\MSSQLExpress14;Database=IRaCIS_New;User ID=sa;Password=dev123456DEV;";
|
||||
public static readonly string DbDatabase = "IRaCIS_New";
|
||||
//表名称用字符串,拼接
|
||||
public static readonly string TableName = "TrialUserPreparation";
|
||||
public static readonly string TableName = "FrontAuditConfig";
|
||||
//具体文件里面 例如service 可以配置是否分页
|
||||
}
|
||||
#>
|
||||
|
||||
@@ -57,7 +57,12 @@ namespace IRaCIS.Core.Application.Service
|
||||
public class <#=tableName#>Service: BaseService, I<#=tableName#>Service
|
||||
{
|
||||
|
||||
private readonly IRepository<<#=tableName#>> _<#=char.ToLower(tableName[0]) + tableName.Substring(1)#>Repository;
|
||||
|
||||
public <#=tableName#>Service(IRepository<<#=tableName#>> <#=char.ToLower(tableName[0]) + tableName.Substring(1)#>Repository)
|
||||
{
|
||||
_<#=char.ToLower(tableName[0]) + tableName.Substring(1)#>Repository = <#=char.ToLower(tableName[0]) + tableName.Substring(1)#>Repository;
|
||||
}
|
||||
|
||||
<# if(isPage){#>
|
||||
public async Task<PageOutput<<#=tableName#>View>> Get<#=tableName#>List(<#=tableName#>Query query<#=tableName#>)
|
||||
|
||||
Reference in New Issue
Block a user