[英]Where does an “ASP.NET Web Application” project store user registration details?
在使用Visual Studio 2013 ASP.NET Web应用程序模板开发网站时,当用户通过register.cshtml视图页面注册其详细信息时,用户信息会存储在哪里?
You create an MVC Web Application in VS 2013. At this moment, the database doesn't exist. 您在VS 2013中创建了MVC Web应用程序。目前,该数据库不存在。 But when you run the application on localhost and register a user, the database is created.
但是,当您在localhost上运行应用程序并注册用户时,将创建数据库。
To find its name, look in web.config: 要找到其名称,请查看web.config:
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-WebApplication2-20150615111350.mdf;Initial Catalog=aspnet-WebApplication2-20150615111350;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
To find its location, look in the App_Data folder: 要找到其位置,请查看App_Data文件夹:
You can use also SQL Server Management Studio for managing this database. 您也可以使用SQL Server Management Studio来管理此数据库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.