22 lines
815 B
C#
22 lines
815 B
C#
using System.ComponentModel;
|
||
using System.ComponentModel.DataAnnotations;
|
||
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
||
namespace WX.CRM.Model.Entity
|
||
{
|
||
public partial class BAS_ROLE
|
||
{
|
||
[DisplayName("角色名称")]
|
||
[NotMapped]
|
||
public string map_RNAME { get { return this.RNAME; } set { this.RNAME = value; } }
|
||
[DisplayName("排序")]
|
||
[NotMapped]
|
||
public decimal map_SORTID { get { return this.SORTID; } set { this.SORTID = value; } }
|
||
[DisplayName("代码")]
|
||
[NotMapped]
|
||
[RegularExpression("^[0-9A-Za-z]{2,10}$", ErrorMessage = "必须为2~10长度的数字和字母!")]
|
||
[Required(ErrorMessage = "代码不能为空!")]
|
||
public string map_CODE { get { return this.CODE; } set { this.CODE = value; } }
|
||
}
|
||
}
|