Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

ConnectionStrings in MVC6

$
0
0

Hello! I need help! I used VS2015 Community beta 8 and project in MVC 6! I need the equivalent of that string from MVC 5:

<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\Base.mdf;Initial Integrated Security=True;" providerName="System.Data.SqlClient" />

Working code in MVC 6, which saves database C:\Users\[User]\, but I want to save in the root of the project

{"Data": {"DefaultConnection": {"ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=Base; Trusted_Connection=True;MultipleActiveResultSets=true"
    }
  }
}

P.S. Sorry for myEnglish


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>