diff --git a/MP.Data/Resources/Readme.md b/MP.Data/Resources/Readme.md index 29cc121b..5e20fed5 100644 --- a/MP.Data/Resources/Readme.md +++ b/MP.Data/Resources/Readme.md @@ -3,15 +3,18 @@ Per la gestione dell'accesso al DB statistiche si opera con EFCore --> apop blazor server -## Scaffolding DB iniziale +## Scaffolding + +Per generare le classi da un DB esistente con cui operare EFCore CodeFirst usare lo scaffolding coi seguenti comandi. +Attenzione: la classe DbCOntext viene creata INSIEME alle viste nella folder DatabaseModel (nell'esempio seguente...) + +### DB iniziale Scaffold-DbContext "Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir DatabaseModels -## Scaffolding SOLO di tabelle/viste selezionate (con force update) - - Scaffold-DbContext "Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir DatabaseModels -Tables v_RS, v_TC_Stat, v_TCR, v_TCR_Day, v_UL - +### SOLO di tabelle/viste selezionate (con force update) +Scaffold-DbContext "Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir DatabaseModels -Tables v_RS, v_TC_Stat, v_TCR, v_TCR_Day, v_UL ## Approfondimenti diff --git a/MP.Data/Resources/Readme.pdf b/MP.Data/Resources/Readme.pdf new file mode 100644 index 00000000..36045894 Binary files /dev/null and b/MP.Data/Resources/Readme.pdf differ diff --git a/MP.Stats/.config/dotnet-tools.json b/MP.Stats/.config/dotnet-tools.json new file mode 100644 index 00000000..b0e38abd --- /dev/null +++ b/MP.Stats/.config/dotnet-tools.json @@ -0,0 +1,5 @@ +{ + "version": 1, + "isRoot": true, + "tools": {} +} \ No newline at end of file diff --git a/MP.Stats/MP.Stats.csproj b/MP.Stats/MP.Stats.csproj index 52359c8b..455c5433 100644 --- a/MP.Stats/MP.Stats.csproj +++ b/MP.Stats/MP.Stats.csproj @@ -3,6 +3,7 @@ net5.0 MP.Stats + 826e877c-ba70-4253-84cb-d0b1cafd4440 @@ -14,6 +15,12 @@ <_ContentIncludedByDefault Remove="wwwroot\css\fonts.min.css" /> + + <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS01.pubxml" /> + <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS02.pubxml" /> + <_WebToolingArtifacts Remove="Properties\PublishProfiles\W2019-IIS-DEVProfile.pubxml" /> + + diff --git a/MP.Stats/Properties/PublishProfiles/IIS01.pubxml b/MP.Stats/Properties/PublishProfiles/IIS01.pubxml new file mode 100644 index 00000000..2935d88e --- /dev/null +++ b/MP.Stats/Properties/PublishProfiles/IIS01.pubxml @@ -0,0 +1,27 @@ + + + + + MSDeploy + True + Release + Any CPU + + + False + d9901b50-e61c-400c-b62c-fa060cf72c29 + false + https://IIS01:8172/MsDeploy.axd + Default Web Site/MP/STATS + + False + WMSVC + True + jenkins + <_SavePWD>True + net5.0 + + \ No newline at end of file diff --git a/MP.Stats/Properties/PublishProfiles/IIS02.pubxml b/MP.Stats/Properties/PublishProfiles/IIS02.pubxml new file mode 100644 index 00000000..7e9f176e --- /dev/null +++ b/MP.Stats/Properties/PublishProfiles/IIS02.pubxml @@ -0,0 +1,27 @@ + + + + + MSDeploy + True + Release + Any CPU + + + False + d9901b50-e61c-400c-b62c-fa060cf72c29 + false + https://IIS02:8172/MsDeploy.axd + Default Web Site/MP/STATS + + False + WMSVC + True + jenkins + <_SavePWD>True + net5.0 + + \ No newline at end of file diff --git a/MP.Stats/Properties/PublishProfiles/W2019-IIS-DEVProfile.pubxml b/MP.Stats/Properties/PublishProfiles/W2019-IIS-DEVProfile.pubxml new file mode 100644 index 00000000..6b790904 --- /dev/null +++ b/MP.Stats/Properties/PublishProfiles/W2019-IIS-DEVProfile.pubxml @@ -0,0 +1,27 @@ + + + + + MSDeploy + True + Release + Any CPU + + + False + d9901b50-e61c-400c-b62c-fa060cf72c29 + false + https://w2019-iis-dev:8172/MsDeploy.axd + Default Web Site/MP/STATS + + False + WMSVC + True + jenkins + <_SavePWD>True + net5.0 + + \ No newline at end of file