This commit is contained in:
2026-01-05 12:44:01 +08:00
parent 41a939176e
commit ea541fb6e4
14 changed files with 171 additions and 467 deletions

View File

@@ -22,7 +22,7 @@ namespace Atomx.Common.Entities
public long CountryId { get; set; }
/// <summary>
/// 州省ID
/// 州/省ID
/// </summary>
public long StateProvinceId { get; set; }
@@ -44,6 +44,12 @@ namespace Atomx.Common.Entities
[Column(TypeName = "varchar(1)")]
public string Initial { get; set; } = string.Empty;
/// <summary>
/// 缩写,简称
/// </summary>
[Column(TypeName = "varchar(32)")]
public string Abbreviation { get; set; } = string.Empty;
/// <summary>
/// 地区深度
/// </summary>

View File

@@ -1,53 +0,0 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Atomx.Common.Entities
{
/// <summary>
/// 州省
/// </summary>
[Table("StateProvinces")]
public class StateProvince
{
/// <summary>
/// 数据ID
/// </summary>
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Key]
public long Id { get; set; }
/// <summary>
/// 地区名称
/// </summary>
[Column(TypeName = "varchar(256)")]
public string Name { get; set; } = string.Empty;
/// <summary>
/// 国家ID
/// </summary>
public long CountryId { get; set; }
/// <summary>
/// 首字母
/// </summary>
[Column(TypeName = "varchar(1)")]
public string Initial { get; set; } = string.Empty;
/// <summary>
/// 缩写
/// </summary>
[Column(TypeName = "varchar(32)")]
public string Abbreviation { get; set; } = string.Empty;
/// <summary>
/// 是否启用
/// </summary>
public bool Enabled { get; set; }
/// <summary>
/// 显示排序
/// </summary>
public int DisplayOrder { get; set; }
}
}

View File

@@ -1,9 +0,0 @@
using Atomx.Common.Entities;
namespace Atomx.Common.Models
{
public class StateProvinceLocalizedModel : StateProvince
{
public List<LocalizedProperty> Locales { get; set; } = new List<LocalizedProperty>();
}
}