mh_custom/wtmProject.Model/WTM_CUSTOM_PERSON.cs
2024-05-17 13:43:36 +08:00

40 lines
1.2 KiB
C#

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
{
/// <summary>
/// WTM_CUSTOM_PERSON
/// </summary>
[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; }
}
}