[英]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.