Skip to content

Commit

Permalink
Merge pull request #471 from louisaxel-ambroise/fix/masterdata-entity…
Browse files Browse the repository at this point in the history
…-configuration

#470 Fix fields names in EF Core model configuration
  • Loading branch information
louisaxel-ambroise authored Feb 12, 2024
2 parents 81c5090 + c84de98 commit 7b0f42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FasTnT.Application/Database/EpcisModelConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static void Apply(ModelBuilder modelBuilder)
masterData.Property(x => x.Type).HasMaxLength(256).IsRequired(true);
masterData.Property(x => x.Id).HasMaxLength(256).IsRequired(true);
masterData.HasMany(x => x.Attributes).WithOne(x => x.MasterData).HasForeignKey("RequestId", "MasterdataType", "MasterdataId");
masterData.HasMany(x => x.Children).WithOne(x => x.MasterData).HasForeignKey("MasterDataRequestId", "MasterdataType", "MasterdataId");
masterData.HasMany(x => x.Children).WithOne(x => x.MasterData).HasForeignKey("MasterDataRequestId", "MasterDataType", "MasterDataId");

var mdAttribute = modelBuilder.Entity<MasterDataAttribute>();
mdAttribute.ToTable(nameof(MasterDataAttribute), Cbv);
Expand Down

0 comments on commit 7b0f42b

Please sign in to comment.