调整地区实体

This commit is contained in:
2025-12-24 12:15:53 +08:00
parent a1516490d2
commit e396e66959
17 changed files with 1349 additions and 75 deletions

View File

@@ -23,11 +23,11 @@ namespace Atomx.Data
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.Entity<Currency>(entity =>
{
entity.Property(e => e.Id).ValueGeneratedOnAdd();
});
//base.OnModelCreating(builder);
//builder.Entity<Currency>(entity =>
//{
// entity.Property(e => e.Id).ValueGeneratedOnAdd();
//});
}
/// <summary>
@@ -46,7 +46,7 @@ namespace Atomx.Data
public DbSet<AppVersion> AppVersions { get; set; }
/// <summary>
/// 国家省市地区
/// 市区数据
/// </summary>
public DbSet<Area> Areas { get; set; }
@@ -60,6 +60,11 @@ namespace Atomx.Data
/// </summary>
public DbSet<Channel> Channels { get; set; }
/// <summary>
/// 国家数据
/// </summary>
public DbSet<Country> Countries { get; set; }
/// <summary>
/// 货币信息
/// </summary>
@@ -136,6 +141,11 @@ namespace Atomx.Data
/// </summary>
public DbSet<SpecificationAttributeOption> SpecificationAttributeOptions { get; set; }
/// <summary>
/// 州省份数据
/// </summary>
public DbSet<StateProvince> StateProvinces { get; set; }
/// <summary>
/// 刷新Tokens
/// </summary>