Skip to main content

Posts

Showing posts with the label configure connection string in MVC 6 in vNext

ASP .NET MVC 6 Angular 2 typescript

Setup Visual Studio Components, TypeScript and Angular 2 I have research the steps involved in starting to learn Angular 2 and ASP.Net MVC 6 and the list of Visual Studio frameworks, scripts, tools and libraries which used in application developments. 1.        ASP.NET Core frameworks 2.        MVC 6 3.        TypeScript 4.        Angular 2 5.        Bootstrap 3 6.        Bower 7.        Gulp Setup Step 1 - Installation instructions 1.        Download and Install ASP.NET Core frameworks from here . 2.        Download and Install NPM by installing Node.js from here . 3.        Install bower, gulp, typescript, typings and tsd using the command window. Ope...

How to configure connection string in MVC 6 in vNext?

You can configure your connection string in " appsettings.json ". i.e. In the below MVC 6  appsettings.json file. Here is  two connections sting, one is default connection " DefaultConnection " and send one is " MVC6DemoContext ". You can see in below JSON file. appsettings.json {   "ApplicationInsights" : {     "InstrumentationKey" : ""   },   "Data" : {     "DefaultConnection" : {       "ConnectionString" : "Server=(localdb)\\mssqllocaldb;Database=aspnet5-WebApplication1-b2a87fa4-3c62-4931-8248-76a6b22a08d1;Trusted_Connection=True;MultipleActiveResultSets=true"     },     "MVC6DemoContext" : {       "ConnectionString" : "Server=myServer;Database=MVC6_Demo;User ID=sa;Password=demo-password; Trusted_Connection=True;MultipleActiveResultSets=true; Integrated Security=false;"     }   },  ...