2025-06-06 16:00:39 +08:00

63 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
/*
*Authorjxx
*Contact283591387@qq.com
*Date2018-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
{
/// <summary>
///Id
/// </summary>
[Key]
[Display(Name = "Id")]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column(TypeName = "int")]
[Required(AllowEmptyStrings = false)]
public int DistrictId { get; set; }
/// <summary>
///城市Code
/// </summary>
[Display(Name = "城市Code")]
[MaxLength(50)]
[Column(TypeName = "nvarchar(50)")]
[Comment("城市Code")]
[Editable(true)]
public string CityCode { get; set; }
/// <summary>
///区县Code
/// </summary>
[Display(Name = "区县Code")]
[MaxLength(50)]
[Column(TypeName = "nvarchar(50)")]
[Comment("区县Code")]
[Editable(true)]
public string DistrictCode { get; set; }
/// <summary>
///区县名称
/// </summary>
[Display(Name = "区县名称")]
[MaxLength(50)]
[Column(TypeName = "nvarchar(50)")]
[Comment("区县名称")]
[Editable(true)]
public string DistrictName { get; set; }
}
}