mh_custom/wtmProject.Model/FrameworkUserPost.cs

29 lines
846 B
C#
Raw Permalink Normal View History

2024-05-16 17:30:33 +08:00
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
{
[Table("FrameworkUserPosts")]
public class FrameworkUserPost : BasePoco, ITenant
{
[Required]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string UserCode { get; set; }
[Required]
[Display(Name = "_Admin.Post")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string PostCode { get; set; }
[Display(Name = "_Admin.Tenant")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string TenantCode { get; set; }
}
}