This commit is contained in:
2025-12-23 12:26:25 +08:00
parent 1f0c84f75e
commit 3c4144335f
14 changed files with 223 additions and 27 deletions

View File

@@ -23,7 +23,11 @@ namespace Atomx.Data
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.Entity<Currency>(entity =>
{
entity.Property(e => e.Id).ValueGeneratedOnAdd();
});
}
/// <summary>
@@ -170,7 +174,7 @@ namespace Atomx.Data
/// <summary>
/// 标签
/// </summary>
public DbSet<Tag> Tags { get; set; }
public DbSet<Tag> Tags { get; set; }
/// <summary>
/// 上传文件