using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; /* *Author:jxx *Contact:283591387@qq.com *Date:2018-07-01 * 此代码由框架生成,请勿随意更改 */ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using VOL.Entity.SystemModels; namespace VOL.Entity.DomainModels { [Table("Sys_District")] [EntityAttribute(TableCnName = "区县")] public class Sys_District : BaseEntity { /// ///Id /// [Key] [Display(Name = "Id")] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Column(TypeName = "int")] [Required(AllowEmptyStrings = false)] public int DistrictId { get; set; } /// ///城市Code /// [Display(Name = "城市Code")] [MaxLength(50)] [Column(TypeName = "nvarchar(50)")] [Comment("城市Code")] [Editable(true)] public string CityCode { get; set; } /// ///区县Code /// [Display(Name = "区县Code")] [MaxLength(50)] [Column(TypeName = "nvarchar(50)")] [Comment("区县Code")] [Editable(true)] public string DistrictCode { get; set; } /// ///区县名称 /// [Display(Name = "区县名称")] [MaxLength(50)] [Column(TypeName = "nvarchar(50)")] [Comment("区县名称")] [Editable(true)] public string DistrictName { get; set; } } }