Percestant“无法加载指定的元数据资源。” [英] Percestant "Unable to load the specified metadata resource."
问题描述
是否有我缺少的设置,或者我是否错误地设置了我的实体框架?
Is there a setting I am missing, or did I set up my Entity Framework incorrectly?
我收到错误 "无法加载指定的元数据资源" ;在单个实体对象上,当我启动Visual Studio并在当天的第一时间输入项目时。它要求我:
I am getting the error "Unable to load the specified metadata resource" on a single entity object, when I am starting up Visual Studio and enter the project for the first time of the day. It requires me to:
在图表视图中打开edmx>选择所有对象>删除所有对象>右键单击>从数据库更新模型>在对话框的"添加"下,选中"表格和视图">单击完成
open the edmx in Diagram view > select all objects > delete all objects > right-click > Update model from database > in dialog box, under Add, check Tables and Views > click Finish
更新并保存图表后,网站正常运行。 Visual Studio以管理员身份运行。
After the Diagram has been updated and saved, the site functions as normal. Visual Studio is ran as Administrator.
项目详细信息:
Microsoft Visual Studio Professional 2017
版本15.9.4
Microsoft .NET Framework
版本4.7.03190
Microsoft Visual Studio Professional 2017
Version 15.9.4
Microsoft .NET Framework
Version 4.7.03190
已安装版本:专业版
C#MVC v5.2.3.0
C# MVC v5.2.3.0
实体框架v6.1.3
Entity Framework v6.1.3
推荐答案
我假设你正在使用某种代码存储库和检查代码到repositroy。然后你正在做一个get-latest并从存储库中获取代码加载到项目的硬盘位置。
I'll assume you are using some kind of code repository and checking the code into the repositroy. And then you are doing a get-latest and getting the code out of the repository loading down on the project's harddrive location.
这篇关于Percestant“无法加载指定的元数据资源。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!