Files
zsxt_nbzs_h5/Api/Ewide.Core/Entity/AreaNumber.cs
2021-04-25 16:06:26 +08:00

45 lines
1.1 KiB
C#

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
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;
namespace Ewide.Core.Entity
{
[Table("ewide_area_number")]
[Comment("区域表")]
public class AreaNumber: IEntity
{
[Key]
[Comment("系统使用的区域代码")]
[MaxLength(10)]
public string Code { get; set; }
[Comment("对外使用的区域代码")]
[MaxLength(10)]
public string ShowCode { get; set; }
[Comment("名称")]
[Required]
[MaxLength(10)]
public string Name { get; set; }
[Comment("备注")]
public string Note { get; set; }
[Comment("类别")]
[Required]
public int LevelType { get; set; }
[Comment("父级区域代码")]
[MaxLength(10)]
public string ParentCode { get; set; }
[Comment("排序")]
public int Sort { get; set; }
}
}