This commit is contained in:
Tizian.Breuch
2025-09-08 11:28:28 +02:00
parent 88a81aa795
commit 0af6501dcd
3 changed files with 9 additions and 6 deletions

View File

@@ -1271,7 +1271,8 @@ namespace Webshop.Infrastructure.Migrations
{
b.HasOne("Webshop.Domain.Entities.Customer", "Customer")
.WithMany("Reviews")
.HasForeignKey("CustomerId");
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.SetNull);
b.HasOne("Webshop.Domain.Entities.Product", "Product")
.WithMany("Reviews")