This commit is contained in:
Павел Путилин 2023-05-09 17:37:32 +04:00
parent 1d70037137
commit 428d1114ac
3 changed files with 8 additions and 7 deletions

View File

@ -39,7 +39,7 @@ namespace PrecastConcretePlantDatabaseImplement.Migrations
b.HasKey("Id");
b.ToTable("Components");
b.ToTable("Components", (string)null);
});
modelBuilder.Entity("PrecastConcretePlantDatabaseImplement.Models.Order", b =>
@ -72,7 +72,7 @@ namespace PrecastConcretePlantDatabaseImplement.Migrations
b.HasIndex("ReinforcedId");
b.ToTable("Orders");
b.ToTable("Orders", (string)null);
});
modelBuilder.Entity("PrecastConcretePlantDatabaseImplement.Models.Reinforced", b =>
@ -92,7 +92,7 @@ namespace PrecastConcretePlantDatabaseImplement.Migrations
b.HasKey("Id");
b.ToTable("Reinforceds");
b.ToTable("Reinforceds", (string)null);
});
modelBuilder.Entity("PrecastConcretePlantDatabaseImplement.Models.ReinforcedComponent", b =>
@ -118,7 +118,7 @@ namespace PrecastConcretePlantDatabaseImplement.Migrations
b.HasIndex("ReinforcedId");
b.ToTable("ReinforcedComponents");
b.ToTable("ReinforcedComponents", (string)null);
});
modelBuilder.Entity("PrecastConcretePlantDatabaseImplement.Shop", b =>
@ -145,7 +145,7 @@ namespace PrecastConcretePlantDatabaseImplement.Migrations
b.HasKey("Id");
b.ToTable("Shops");
b.ToTable("Shops", (string)null);
});
modelBuilder.Entity("PrecastConcretePlantDatabaseImplement.ShopReinforced", b =>
@ -171,7 +171,7 @@ namespace PrecastConcretePlantDatabaseImplement.Migrations
b.HasIndex("ShopId");
b.ToTable("ShopReinforceds");
b.ToTable("ShopReinforceds", (string)null);
});
modelBuilder.Entity("PrecastConcretePlantDatabaseImplement.Models.Order", b =>

View File

@ -12,7 +12,7 @@ namespace PrecastConcretePlantDatabaseImplement
{
optionsBuilder.UseSqlServer(@"
Server = localhost\SQLEXPRESS;
Initial Catalog = SoftwareInstallationDatabaseFull;
Initial Catalog = PrecastConcretePlantDatabaseDatabaseFull;
Integrated Security = True;
MultipleActiveResultSets = True;
TrustServerCertificate = True");

View File

@ -71,6 +71,7 @@ namespace PrecastConcretePlantDatabaseImplement
Name = model.Name;
Address = model.Address;
DateOpening = model.DateOpening;
MaxCountReinforceds = model.MaxCountReinforceds;
}
public ShopViewModel GetViewModel => new()
{