This commit is contained in:
2022-04-21 13:54:58 +08:00
parent b0fa708271
commit aaeeff9b00
@@ -75,11 +75,11 @@ namespace IRaCIS.Core.Infra.EFCore
if (_userInfo.IsEn_Us)
{
modelBuilder.Entity<Dictionary>().Property(t => t.MappedValue).HasColumnName("Value");
modelBuilder.Entity<Dictionary>().Property(t => t.MappedValue).HasColumnName(nameof(Domain.Models.Dictionary.Value));
}
else
{
modelBuilder.Entity<Dictionary>().Property(t => t.MappedValue).HasColumnName("ValueCN");
modelBuilder.Entity<Dictionary>().Property(t => t.MappedValue).HasColumnName(nameof(Domain.Models.Dictionary.ValueCN));
}
@@ -104,7 +104,7 @@ namespace IRaCIS.Core.Infra.EFCore
if (typeof(Entity).IsAssignableFrom(entityType.ClrType))
{
modelBuilder.Entity(entityType.ClrType).Property<Guid>("Id").HasValueGenerator<MySequentialGuidValueGenerator>();
modelBuilder.Entity(entityType.ClrType).Property<Guid>(nameof(Entity.Id)).HasValueGenerator<MySequentialGuidValueGenerator>();
}
}