丢失了我的 ASPNETDB.mdf
我正在开发 MVC 店面 Rob Conery 项目,但我丢失了 ASPNET.mdf 数据库!
我希望将 ASPNET.mdf 数据库放在我的 App_Data 文件夹中。我尝试包含数据库,右键单击它并将其包含在项目中。但是在 Server Exporer 上,当我尝试查看表时却没有。
这是我的 Web.Config 文件:
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
<add name="CoderForTradersConnectionString"
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|CoderForTraders.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
可能是什么问题?
I am working on the MVC storefront Rob Conery project and I lost my ASPNET.mdf database !
I would like to have the ASPNET.mdf database in my App_Data folder. I tried to include the db right clicking on it and including it in the project. But on the Server Exporer when I am tring to look at tables there are none.
Here is my Web.Config file :
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
<add name="CoderForTradersConnectionString"
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|CoderForTraders.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
What could be the problem ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我必须从 VisualStudio 工具提示符 aspnet_regsql 中包含 aspnetdb.mdf 并将数据库添加到我的项目中。
I had to include the aspnetdb.mdf from the VisualStudio tool prompt aspnet_regsql and add the database to my project.