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

63 lines
1.6 KiB
C#
Raw Permalink 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_City")]
[EntityAttribute(TableCnName = "城市")]
public class Sys_City : BaseEntity
{
/// <summary>
///Id
/// </summary>
[Key]
[Display(Name = "Id")]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column(TypeName = "int")]
[Required(AllowEmptyStrings = false)]
public int CityId { get; set; }
/// <summary>
///省份Code
/// </summary>
[Display(Name = "省份Code")]
[MaxLength(50)]
[Column(TypeName = "nvarchar(50)")]
[Comment("省份Code")]
[Editable(true)]
public string ProvinceCode { get; set; }
/// <summary>
///城市名称
/// </summary>
[Display(Name = "城市名称")]
[MaxLength(50)]
[Column(TypeName = "nvarchar(50)")]
[Comment("城市名称")]
[Editable(true)]
public string CityName { get; set; }
/// <summary>
///城市Code
/// </summary>
[Display(Name = "城市Code")]
[MaxLength(50)]
[Column(TypeName = "nvarchar(50)")]
[Comment("城市Code")]
[Editable(true)]
public string CityCode { get; set; }
}
}