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
@@ -13,7 +13,7 @@ public class UserCartsConfiguration : IEntityTypeConfiguration<UserCarts>
builder.Property(entity => entity.Id).UseIdentityColumn();
builder
.HasOne(entity => entity.Product)
.WithMany(entity => entity.ProductUserCartss)
.WithMany(entity => entity.UserCartss)
.HasForeignKey(entity => entity.ProductId)
.IsRequired(true);
builder