EntityFramework.dll中出现“System.ArgumentException”类型的异常,但未在用户代码中处理 [英] An exception of type 'System.ArgumentException' occurred in EntityFramework.dll but was not handled in user code

查看:100
本文介绍了EntityFramework.dll中出现“System.ArgumentException”类型的异常,但未在用户代码中处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I've faced a problem that is:

An exception of type 'System.ArgumentException' occurred in EntityFramework.dll but was not handled in user code

Additional information: The Include path expression must refer to a navigation property defined on the type. Use dotted paths for reference navigation properties and the Select operator for collection navigation properties.
How can I solve it?

For more information please visit this link.
<a href="http://stackoverflow.com/q/28148808/1817640">this link</a>

推荐答案

您可以调试并检查错误发生的确切位置以及导致错误的原因。
这是查找错误的最简单方法。
You can debug and check exactly where the error occurred and what caused it.
That would be the easiest way to find the error.


这篇关于EntityFramework.dll中出现“System.ArgumentException”类型的异常,但未在用户代码中处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆