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