From 1446fe7b95d3d3e3d93bc4e1a8784a2a85cd202f Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Tue, 7 Oct 2025 10:20:52 +0200 Subject: [PATCH] Error during migration --- PyroFetes/PyroFetesDbContext.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/PyroFetes/PyroFetesDbContext.cs b/PyroFetes/PyroFetesDbContext.cs index 29fc13b..ae0944c 100644 --- a/PyroFetes/PyroFetesDbContext.cs +++ b/PyroFetes/PyroFetesDbContext.cs @@ -66,18 +66,5 @@ public class PyroFetesDbContext : DbContext // Models customization protected override void OnModelCreating(ModelBuilder modelBuilder) { - // Relation SourceWarehouse - modelBuilder.Entity() - .HasOne(m => m.SourceWarehouse) - .WithMany(w => w.MovementsSource) - .HasForeignKey(m => m.SourceWarehouseId) - .OnDelete(DeleteBehavior.Restrict); - - // Relation DestinationWarehouse - modelBuilder.Entity() - .HasOne(m => m.DestinationWarehouse) - .WithMany(w => w.MovementsDestination) - .HasForeignKey(m => m.DestinationWarehouseId) - .OnDelete(DeleteBehavior.Restrict); } } \ No newline at end of file