This commit is contained in:
masoodafar-web
2025-11-12 20:30:53 +03:30
parent 4b8a1dc03c
commit 1fb7e4d374
18 changed files with 27 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ public class TransactionsConfiguration : IEntityTypeConfiguration<Transactions>
builder.Property(entity => entity.RefId).IsRequired(false);
builder
.HasOne(entity => entity.Order)
.WithMany(entity => entity.OrderTransactionss)
.WithMany(entity => entity.Transactionss)
.HasForeignKey(entity => entity.OrderId)
.IsRequired(false);
builder.Property(entity => entity.Type).IsRequired(true);