例如下图中的红色矩形框中的内容:
怎样把数据库文件.mdf和.ldf文件添加进入Visual Studio的“解决方案资源管理器”中?
答案:3 悬赏:20
解决时间 2021-04-21 12:22
- 提问者网友:喵星人荷西
- 2021-04-20 17:32
最佳答案
- 二级知识专家网友:心痛成瘾
- 2021-04-20 18:13
数据库文件是用于分离后的数据库文件链接的,若果要链接已链接到数据库引擎的数据库(非分离的数据库文件),要使用microsoft sql server的数据源选项。
全部回答
- 1楼网友:桃花别处起长歌
- 2021-04-20 19:07
Visual Studio编译器中,每当新建一个项目的时候,新项目总是会添加在解决方案下面。但是有时候不小心在VS2010编译器中设置某些选项,会导致无法查看解决方案的问题。
而且还会出现添加一个空的解决方案,然后在添加了新项目后,解决方案就会消失,只保留新建的项目名称。这样的后果是无法添加其他的新项目。
这种情况下要如何在Visual Studio中显示解决方案呢?其实只要设置下VS2010相关配置就可以了,具体流程是打开菜单栏上的工具---》选项---》项目和解决方案---》最后勾选总是显示解决方案。现在在解决方案资源管理器中就可以显示解决方案了
- 2楼网友:哭不代表软弱
- 2021-04-20 18:54
1. If the App_Data folder doesn’t already exist, add the “App_Data” folder to your project. This can be done by selecting it from the “Add ASP.NET Folder” list or just adding a regular folder and naming it accordingly
2. Go to the course website and download the WebDB Databasefiles.
3. Unzip the filesand paste them into the App_Data folder of your solution explorer
· Remember: if you copy the files into the folder outside of visual studio, you will need to select the show allfiles icon, then right click on your hidden WebDB database files and click include in project.
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯