diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 7b56d2665..513d53767 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,36 +1,4 @@ { - "version": "2.0.0", - "tasks": [ - { - "label": "build", - "command": "dotnet", - "type": "process", - "args": [ - "build", - "${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft/Phonebook.Source.PeopleSoft.csproj" - ], - "problemMatcher": "$tsc" - }, - { - "label": "publish", - "command": "dotnet", - "type": "process", - "args": [ - "publish", - "${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft/Phonebook.Source.PeopleSoft.csproj" - ], - "problemMatcher": "$tsc" - }, - { - "label": "watch", - "command": "dotnet", - "type": "process", - "args": [ - "watch", - "run", - "${workspaceFolder}/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft/Phonebook.Source.PeopleSoft.csproj" - ], - "problemMatcher": "$tsc" - } - ] -} \ No newline at end of file + "version": "2.0.0", + "tasks": [] +} diff --git a/Phonebook.Source.PeopleSoft/.vscode/tasks.json b/Phonebook.Source.PeopleSoft/.vscode/tasks.json index 74cbf42d8..4ea3dc756 100644 --- a/Phonebook.Source.PeopleSoft/.vscode/tasks.json +++ b/Phonebook.Source.PeopleSoft/.vscode/tasks.json @@ -1,15 +1,26 @@ { - "version": "2.0.0", - "tasks": [ - { - "label": "build", - "command": "dotnet", - "type": "process", - "args": [ - "build", - "${workspaceFolder}/src/Phonebook.Source.PeopleSoft/Phonebook.Source.PeopleSoft.csproj" - ], - "problemMatcher": "$msCompile" - } - ] -} \ No newline at end of file + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": ["build", "${workspaceFolder}/src/Phonebook.Source.PeopleSoft/Phonebook.Source.PeopleSoft.csproj"], + "problemMatcher": "$msCompile" + }, + { + "label": "run", + "command": "dotnet", + "type": "process", + "args": ["run", "-p", "${workspaceFolder}/src/Phonebook.Source.PeopleSoft/"], + "problemMatcher": "$msCompile" + } + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": ["watch", "-p", "${workspaceFolder}/src/Phonebook.Source.PeopleSoft/", "run"], + "problemMatcher": "$msCompile" + } + ] +} diff --git a/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft.Models/Context/SeedingContext.cs b/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft.Models/Context/SeedingContext.cs index a438f847e..8ef97bb88 100644 --- a/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft.Models/Context/SeedingContext.cs +++ b/Phonebook.Source.PeopleSoft/src/Phonebook.Source.PeopleSoft.Models/Context/SeedingContext.cs @@ -1,5 +1,6 @@ using Bogus; using Microsoft.EntityFrameworkCore; +using System; using System.IO; using System.Linq; @@ -33,6 +34,9 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); + // Freeze Seed in order to make debugging easier (keeping the same user Id's + Randomizer.Seed = new Random(8675309); + var roomNumbers = new[] { "1A", "2A", "3A", "4A", "5A", "6A", "1B", "2B", "3B", "4B", "5B", "6B", "1.004785", "N100.45", "545", "0.0454a", "Apl", "F-54689", "F54689" }; #region Location @@ -196,7 +200,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) #region Person - var maxPersons = 5000; + var maxPersons = 1500; var PersonFaker = new Faker() .StrictMode(false) .Rules((f, b) => diff --git a/global.json b/global.json index 995f3557c..05d0ae3d2 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { "sdk": { - "version": "3.1.102" + "version": "3.1.201" } -} \ No newline at end of file +}