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 { /// /// WTM_CUSTOM_PERSON /// [Table("WTM_CUSTOM_PERSON")] public class WTM_CUSTOM_PERSON : BasePoco, ITenant { public WTM_CUSTOM Custom { get; set; } [Display(Name = "_Admin.Custom")] public Guid? CustomId { get; set; } [Display(Name = "_Admin.PersonName")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string PersonName { get; set; } [Display(Name = "_Admin.PersonPhone")] [RegularExpression("^[1][3-9]\\d{9}$", ErrorMessage = "Validate.{0}formaterror")] public string PersonPhone { get; set; } [Display(Name = "_Admin.PersonPost")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string PersonPost { get; set; } [Display(Name = "_Admin.Tenant")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string TenantCode { get; set; } } }