Fix init DB

This commit is contained in:
Samuele Locatelli
2021-09-03 14:58:55 +02:00
parent e54a77d85d
commit 17ca3eee8e
6 changed files with 109 additions and 3 deletions
@@ -37,6 +37,15 @@ namespace MP.FileData.Migrations
b.HasKey("CodArticolo");
b.ToTable("Articoli");
b.HasData(
new
{
CodArticolo = "ND",
DescArticolo = "--- Tutti ---",
Disegno = "",
Tipo = "ND"
});
});
modelBuilder.Entity("MP.FileData.DatabaseModels.FileModel", b =>
@@ -120,6 +129,19 @@ namespace MP.FileData.Migrations
b.HasKey("IdxMacchina");
b.ToTable("Macchine");
b.HasData(
new
{
IdxMacchina = "0",
BasePath = "",
CodMacchina = "0",
Descrizione = "--- Tutte ---",
ImgUrl = "",
Nome = "--- Tutte ---",
Note = "",
ShowOrder = 0
});
});
modelBuilder.Entity("MP.FileData.DatabaseModels.FileModel", b =>