ASP源码.NET源码PHP源码JSP源码JAVA源码DELPHI源码PB源码VC源码VB源码Android源码
当前位置:首页 >> 数据库 >> SqlServer >> SQL Server Connection Strings for ASPNET Web Applications

SQL Server Connection Strings for ASPNET Web Applications(2/2)

来源:网络整理     时间:2016-03-05     关键词:

本篇文章主要介绍了"SQL Server Connection Strings for ASPNET Web Applications",主要涉及到方面的内容,对于SqlServer感兴趣的同学可以参考一下: 数据库学习过程中,发现一个好的资源:https://msdn.microsoft.com/en-us/library/jj653752.aspx ...

     注意当你使用localdb的时候,你添加到web.config里面的链接字符串的名字,必须和你的Model里面的MovieDBContext相同!!( name of the connection string must match the name of the DbContext class.),如链接字符串如下:

      关于Localdb在https://msdn.microsoft.com/en-us/library/hh510202.aspx有以下介绍:

The LocalDB setup program uses the SqlLocalDB.msi program to install the necessary files on the computer. Once installed, LocalDB is an instance of SQL Server Express that can create and open SQL Server databases. The system database files for the database are stored in the users' local AppData path which is normally hidden. For example C:\Users\\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\LocalDBApp1\. User database files are stored where the user designates, typically somewhere in the C:\Users\\Documents\ folder.

For more information about including LocalDB in an application, see the Visual Studio documentation Local Data Overview, Walkthrough: Creating a SQL Server LocalDB Database, and Walkthrough: Connecting to Data in a SQL Server LocalDB Database (Windows Forms).



以上就介绍了SQL Server Connection Strings for ASPNET Web Applications,包括了方面的内容,希望对SqlServer有兴趣的朋友有所帮助。

本文网址链接:http://www.codes51.com/article/detail_373031_2.html

相关图片

相关文章