forked from sanchezvem/PyroFetes
Firs fixes like price into PDF
This commit is contained in:
@@ -695,8 +695,13 @@ namespace PyroFetes.Migrations
|
||||
.HasMaxLength(300)
|
||||
.HasColumnType("nvarchar(300)");
|
||||
|
||||
b.Property<int>("SupplierId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("SupplierId");
|
||||
|
||||
b.ToTable("PurchaseOrders");
|
||||
});
|
||||
|
||||
@@ -1545,6 +1550,17 @@ namespace PyroFetes.Migrations
|
||||
b.Navigation("Provider");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PyroFetes.Models.PurchaseOrder", b =>
|
||||
{
|
||||
b.HasOne("PyroFetes.Models.Supplier", "Supplier")
|
||||
.WithMany()
|
||||
.HasForeignKey("SupplierId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Supplier");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PyroFetes.Models.PurchaseProduct", b =>
|
||||
{
|
||||
b.HasOne("PyroFetes.Models.Product", "Product")
|
||||
|
||||
Reference in New Issue
Block a user