From 32ce3953d8bbfbfc47197f37f6040a51d6cb9f27 Mon Sep 17 00:00:00 2001 From: ftorres Date: Wed, 29 Apr 2020 16:28:34 -0400 Subject: [PATCH] Upgrade to .NET 4.6.1. Default to connection string using local instance of sql server. Added setup instruction in readme --- BrainWare.sln | 12 +++- PopulateDB.sql => ProjectDB/PopulateDB.sql | 0 ProjectDB/ProjectDB.sqlproj | 1 + README.md | 18 ++++++ Tests/App.config | 12 ++-- Tests/Tests.csproj | 3 +- Web/Infrastructure/Database.cs | 6 +- Web/Web.config | 72 +++++++++++++--------- Web/Web.csproj | 11 ++-- 9 files changed, 90 insertions(+), 45 deletions(-) rename PopulateDB.sql => ProjectDB/PopulateDB.sql (100%) diff --git a/BrainWare.sln b/BrainWare.sln index b23e653..a35c2af 100644 --- a/BrainWare.sln +++ b/BrainWare.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29920.165 MinimumVisualStudioVersion = 10.0.40219.1 Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "ProjectDB", "ProjectDB\ProjectDB.sqlproj", "{58D1E657-AA21-497F-BA9C-634D6DA2D921}" EndProject @@ -9,6 +9,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Web", "Web\Web.csproj", "{F EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{6C10F27E-A278-4801-8AC7-929212274D85}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5FC57735-E720-490F-AB66-1EEC6F7A26B4}" + ProjectSection(SolutionItems) = preProject + README.md = README.md + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -33,4 +38,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F2D2A54A-021F-4976-A139-0364135E456F} + EndGlobalSection EndGlobal diff --git a/PopulateDB.sql b/ProjectDB/PopulateDB.sql similarity index 100% rename from PopulateDB.sql rename to ProjectDB/PopulateDB.sql diff --git a/ProjectDB/ProjectDB.sqlproj b/ProjectDB/ProjectDB.sqlproj index acbb062..8a7f1f2 100644 --- a/ProjectDB/ProjectDB.sqlproj +++ b/ProjectDB/ProjectDB.sqlproj @@ -65,6 +65,7 @@ + diff --git a/README.md b/README.md index a520b71..5dae803 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,21 @@ Change the AttachDbFile name to the full path of the BrainWare.mdf file (located ## Original Output Example ![page image](output.GIF?raw=true) + + +## Setup + +### Database Setup +- Start SQL Server Management Studio as Administrator +- Once conntected to your local SQL Server instance +- Right click on the Database node and select attach +- Select the file BrainWare\Web\App_Data\BrainWare.mdf + +- You can also deploy the project ProjectDB to your local SQL Server instance +- Then execute in SQL Server Management Studio the file BrainWare\ProjectDB\PopulateDB.sql + +### Visual Studio +- Open solution BrainWare\BrainWare.sln +- Set the project Web, as the start up project +- Press F5 +- Execpted a browser is open with the result of the first order \ No newline at end of file diff --git a/Tests/App.config b/Tests/App.config index c6d54b1..025efa1 100644 --- a/Tests/App.config +++ b/Tests/App.config @@ -1,4 +1,4 @@ - + + + + + - - - - + + + + + - - + + - + - - - - + + + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + \ No newline at end of file diff --git a/Web/Web.csproj b/Web/Web.csproj index 98ce235..07dc59d 100644 --- a/Web/Web.csproj +++ b/Web/Web.csproj @@ -15,7 +15,7 @@ Properties Web Web - v4.5.2 + v4.6.1 false true @@ -26,6 +26,8 @@ /subscriptions/2d4dc7b2-21d7-4398-9fa5-238684687c92/resourcegroups/Default-ApplicationInsights-EastUS/providers/microsoft.insights/components/Web + + true @@ -80,13 +82,13 @@ + + - - - + @@ -140,6 +142,7 @@ True ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll + True ..\packages\WebGrease.1.5.2\lib\WebGrease.dll