using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using WalkingTec.Mvvm.Core; namespace wtmProject.Model { /// /// FrameworkCustom /// [Table("FrameworkCustoms")] [SoftKey("CustomCode")] public class FrameworkCustom : BasePoco, ITenant { [Display(Name = "_Admin.CustomCode")] [Required(ErrorMessage = "Validate.{0}required")] [RegularExpression("^[0-9]*$", ErrorMessage = "Validate.{0}number")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] [CanNotEdit] public string CustomCode { get; set; } [Display(Name = "_Admin.CustomName")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] [Required(ErrorMessage = "Validate.{0}required")] public string CustomName { get; set; } [Display(Name = "_Admin.Tenant")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string TenantCode { get; set; } } }