hechos un par de cambios
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user