使用“从数据库更新模型”时抛出异常 [英] Exception thrown when using "Update Model from database"
问题描述
你好!
我知道这是错误的论坛,但我找不到任何其他更相关的地方......
我正在运行VS 2015 并且正在尝试实体框架,我已在另一台
机器上连接到SQL 2014服务器。
我可以让向导生成类,一切都很好,但是当我在设计器中右键单击并选择"从数据库更新
模型"时,尝试添加存储过程VS引发异常:
"尝试从数据库更新时发生'System.ArgumentException'类型的异常。
消息的异常是:'标识符为空或为空'。"
...什么给...我如何将Store过程添加到本地实体?
Hi Likhith.S,
>> ...是什么给...我如何将商店程序添加到本地实体?
我创建了一个简单的演示,我没有遇到你发生的问题,请你分享你的商店程序
和相关表格,我们可以在我身边重现你的问题。
祝你好运,
Cole Wu 跨度>
Hello!
I know this is the wrong forum but I could not find any other more relevant place to ask...
I'm running VS 2015 and was trying out the entity framework, I have connected to a SQL 2014 Server on another
machine.
I can get the Wizard to generate classes and all is fine, but when I rightclick in the designer, and choose "Update
Model from database", and try to add the stored procedure VS throws an exception:
"An exception of type 'System.ArgumentException' occurred while attempting to update from the database. The exception
message is: 'Identifier is null or empty'."
...what gives...how can i add the Store procedure to local entity?
Hi Likhith.S,
>>...what gives...how can i add the Store procedure to local entity?
I create an simple demo, and I don't encounter the issue you occurring, could you please share your store procedure and related table, which we could reproduce your issue on my side.
Best regards,
Cole Wu
这篇关于使用“从数据库更新模型”时抛出异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!