using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace WX.CRM.Model.Entity { public partial class BAS_RIGHT { [DisplayName("权限组")] [NotMapped] public Nullable map_PKID { get { return this.GROUPID; } set { this.GROUPID = value; } } [DisplayName("权限Id")] [NotMapped] [Required(ErrorMessage = "权限ID不能为空")] [StringLength(4, MinimumLength = 4, ErrorMessage = "权限Id是4位字符")] public string map_RightId { get { return this.RIGHTID; } set { this.RIGHTID = value; } } [DisplayName("权限名")] [NotMapped] public string map_RNAME { get { return this.RNAME; } set { this.RNAME = value; } } [DisplayName("排序")] [NotMapped] //[DisplayFormat(DataFormatString = "{0:0}", ApplyFormatInEditMode = true)] public decimal map_SORTID { get { return this.SORTID; } set { this.SORTID = value; } } } }