hechos un par de cambios

This commit is contained in:
videojuegoslagos
2024-08-14 08:42:34 -03:00
parent 063be0588e
commit 4741038dd3
132 changed files with 4472 additions and 1132 deletions

View File

@@ -70,9 +70,9 @@ public class Context : Microsoft.EntityFrameworkCore.DbContext
.HasKey(f => f.Id);
modelBuilder.Entity<Factura>()
.HasMany(f => f.Detalles)
.HasMany(f => f.detalles)
.WithOne()
.HasForeignKey(df => df.FacturaId);
.HasForeignKey(df => df.IdFactura);
modelBuilder.Entity<DetalleFactura>()
.ToTable("DetallesFacturas")