36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
![]() |
using System.Collections.Generic;
|
||
|
using System.ComponentModel.DataAnnotations;
|
||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
using System.Text.Json.Serialization;
|
||
|
using System.Xml.Serialization;
|
||
|
|
||
|
namespace WalkingTec.Mvvm.Core
|
||
|
{
|
||
|
|
||
|
[Table("FrameworkGroups")]
|
||
|
public class FrameworkGroup : BasePoco
|
||
|
{
|
||
|
[Display(Name = "_Admin.GroupCode")]
|
||
|
[Required(ErrorMessage = "Validate.{0}required")]
|
||
|
[RegularExpression("^[0-9]*$", ErrorMessage = "Validate.{0}number")]
|
||
|
[StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||
|
public string GroupCode { get; set; }
|
||
|
|
||
|
[Display(Name = "_Admin.GroupName")]
|
||
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||
|
[Required(ErrorMessage = "Validate.{0}required")]
|
||
|
public string GroupName { get; set; }
|
||
|
|
||
|
[Display(Name = "_Admin.Remark")]
|
||
|
public string GroupRemark { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
[Display(Name = "_Admin.UsersCount")]
|
||
|
public int UsersCount { get; set; }
|
||
|
|
||
|
[Display(Name = "_Admin.Tenant")]
|
||
|
public string TenantCode { get; set; }
|
||
|
|
||
|
}
|
||
|
}
|