Browse Source

Fix AbpEntityPropertyChanges table duplicate Column "EntityChangeId" and "EntityChangeId1"

pull/707/head
Nokecy 8 years ago
parent
commit
90aeb6cba8
  1. 2
      modules/audit-logging/src/Volo.Abp.AuditLogging.EntityFrameworkCore/Volo/Abp/AuditLogging/EntityFrameworkCore/AbpAuditLoggingtDbContextModelBuilderExtensions.cs

2
modules/audit-logging/src/Volo.Abp.AuditLogging.EntityFrameworkCore/Volo/Abp/AuditLogging/EntityFrameworkCore/AbpAuditLoggingtDbContextModelBuilderExtensions.cs

@ -76,7 +76,7 @@ namespace Volo.Abp.AuditLogging.EntityFrameworkCore
b.Property(x => x.ChangeType).IsRequired().HasColumnName(nameof(EntityChange.ChangeType));
b.Property(x => x.TenantId).HasColumnName(nameof(EntityChange.TenantId));
b.HasMany<EntityPropertyChange>().WithOne().HasForeignKey(x => x.EntityChangeId);
b.HasMany(a => a.PropertyChanges).WithOne().HasForeignKey(x => x.EntityChangeId);
b.HasIndex(x => new { x.AuditLogId });
b.HasIndex(x => new { x.TenantId, x.EntityTypeFullName, x.EntityId });

Loading…
Cancel
Save