using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace iWare.Wms.Core
{
///
/// 代码生成表
///
[Table("sys_code_gen")]
[Comment("代码生成表")]
public class SysCodeGen : DEntityBase
{
///
/// 作者姓名
///
[Comment("作者姓名")]
[MaxLength(20)]
public string AuthorName { get; set; }
///
/// 是否移除表前缀
///
[Comment("是否移除表前缀")]
[MaxLength(5)]
public string TablePrefix { get; set; }
///
/// 生成方式
///
[Comment("生成方式")]
[MaxLength(20)]
public string GenerateType { get; set; }
///
/// 数据库名
///
[Comment("数据库名")]
[MaxLength(100)]
public string DatabaseName { get; set; }
///
/// 数据库表名
///
[Comment("数据库表名")]
[MaxLength(100)]
public string TableName { get; set; }
///
/// 命名空间
///
[Comment("命名空间")]
[MaxLength(100)]
public string NameSpace { get; set; }
///
/// 程序集
///
[NotMapped]
public string ProName
{
get { return NameSpace.TrimEnd(new char[] { '.', 'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n' }); }
}
///
/// 业务名
///
[Comment("业务名")]
[MaxLength(100)]
public string BusName { get; set; }
///
/// 菜单应用分类(应用编码)
///
[Comment("菜单应用分类")]
[MaxLength(50)]
public string MenuApplication { get; set; }
///
/// 菜单编码
///
[Comment("菜单编码")]
public long MenuPid { get; set; }
///
/// 低代码模块来源
///
public long? LowCodeId { get; set; }
}
}