简体   繁体   English

ASP.NET 项目未在 app_data 中创建 .mdf 文件

[英]ASP.NET project not creating .mdf file in app_data

I'm following along with the Coding With Mosh Vidly tutorials, and I've gotten to the point of building the database, and the .mdf file is not being generated within the app_data folder.我正在关注 Coding With Mosh Vidly 教程,我已经到了构建数据库的地步,并且 .mdf 文件没有在 app_data 文件夹中生成。

I've got through and made sure all the azure extensions etc are all installed, ran update-database and i get the 'Running Seed Method' response.我已经通过并确保所有 azure 扩展等都已安装,运行更新数据库,我得到了“运行种子方法”的响应。

Not sure if the mdf file is being saved elsewhere, or if i have done something wrong, but some help would be much appreciated.不确定 mdf 文件是否保存在其他地方,或者我是否做错了什么,但我们将不胜感激。

You can try to run the following command from Package Manager console.您可以尝试从包管理器控制台运行以下命令。

update-database

Also, ensure to check connection strings.另外,请确保检查连接字符串。 one way is to enter the same connection string in SQl server management console and see if you can login.一种方法是在SQl服务器管理控制台中输入相同的连接字符串,看看是否可以登录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ASP.NET MVC中App_Data文件夹下缺少.mdf文件 - .mdf file missing under the App_Data folder in ASP.NET MVC 如何让 Visual Studio 使用我的数据库,而不是位于 ASP.NET MVC 项目的 App_Data 文件夹中的 .mdf 文件? - How can I make Visual Studio use my database instead of the .mdf file located in App_Data folder in ASP.NET MVC project? 在App_data中找不到.mdf文件 - Cannot find .mdf file in App_data ASP.Net vNext App_Data文件夹 - ASP.Net vNext App_Data folder 想要在实时服务器中上传文件,而不是ASP.Net MVC中的App_Data文件夹 - Want to upload file in the live server other than App_Data folder in ASP.Net MVC ASP.NET MVC 4拒绝访问路径App_Data - ASP.NET MVC 4 Access to the path App_Data is denied 使用Visual Studio 2010在ASP.NET MVC4教程的app_data中未显示数据库文件 - database file not showing in app_data in asp.net mvc4 tutorial using visual studios 2010 从ASP.NET MVC App_Data目录中的.txt文件查看内容 - View contents from .txt file from ASP.NET MVC App_Data directory 如何为存储在asp.net的app_data文件夹中的文件提供URL - How to give URL for a file stored in app_data folder in asp.net 为什么 mdf 文件没有出现在 App_Data 文件夹中? - Why is mdf file not appearing in the App_Data folder?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM