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..afd5e23 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,22 @@ 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 connected 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 +- Update the database connection string in file Web\Infrastructure\Database.cs +- Set the project Web, as the start up project +- Press F5 +- Expected a browser is open with the result of the first order 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