update 删除所有Xn前缀, 规范了所有分页参数和返回值
This commit is contained in:
@@ -50,8 +50,8 @@ namespace Ewide.Core.Service.CodeGen
|
||||
var tableName = !string.IsNullOrEmpty(input.TableName?.Trim());
|
||||
var codeGens = await _sysCodeGenRep.DetachedEntities
|
||||
.Where((tableName, u => EF.Functions.Like(u.TableName, $"%{input.TableName.Trim()}%")))
|
||||
.ToPagedListAsync(input.PageNo, input.PageSize);
|
||||
return XnPageResult<SysCodeGen>.PageResult(codeGens);
|
||||
.ToPagedListAsync(input.PageIndex, input.PageSize);
|
||||
return PageDataResult<SysCodeGen>.PageResult(codeGens);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Ewide.Core.Service
|
||||
/// <summary>
|
||||
/// 代码生成参数类
|
||||
/// </summary>
|
||||
public class CodeGenInput : XnInputBase
|
||||
public class CodeGenInput : InputBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 作者姓名
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Ewide.Core.Service
|
||||
{
|
||||
public class XnCodeGenOutput
|
||||
{
|
||||
/// <summary>
|
||||
/// 作者姓名
|
||||
/// </summary>
|
||||
public string AuthorName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否移除表前缀
|
||||
/// </summary>
|
||||
public string TablePrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生成方式
|
||||
/// </summary>
|
||||
public string GenerateType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库表名
|
||||
/// </summary>
|
||||
public string TableName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库表名(经过组装的)
|
||||
/// </summary>
|
||||
public string TableNameAss { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 代码包名
|
||||
/// </summary>
|
||||
public string PackageName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生成时间(string类型的)
|
||||
/// </summary>
|
||||
public string CreateTimestring { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库表中字段集合
|
||||
/// </summary>
|
||||
public List<SysCodeGenConfig> ConfigList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务名
|
||||
/// </summary>
|
||||
public string BusName { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user