在实体框架防爆pression.Invoke?实体、框架、Invoke、pression

由网友(心脏丶别矫情了)分享简介:实体框架不支持防爆pression.Invoke 运营商。您尝试使用它时,会收到以下异常:The Entity Framework does not support the Expression.Invoke operator. You receive the following exception when tr...

实体框架不支持防爆pression.Invoke 运营商。您尝试使用它时,会收到以下异常:

The Entity Framework does not support the Expression.Invoke operator. You receive the following exception when trying to use it:

的LINQ EX pression节点类型调用是不是实体支持LINQ。

"The LINQ expression node type 'Invoke' is not supported in LINQ to Entities.

有没有人有一种解决方法缺少的功能?我想用predicateBuilder详细这里在实体框架范围内。

Has anyone got a workaround for this missing functionality? I would like to use the PredicateBuilder detailed here in an Entity Framework context.

修改1 @marxidad - 我很喜欢你的建议,但它确实有点难不倒我。您能否给一些进一步的建议你提出的解决方案呢?

Edit 1 @marxidad - I like your suggestion, however it does baffle me somewhat. Can you give some further advice on your proposed solution?

编辑2 @marxidad - 谢谢你的澄清

Edit 2 @marxidad - Thanks for the clarification.

推荐答案

predicateBuilder 和 LINQKit 现在支持实体框架。

PredicateBuilder and LINQKit now support Entity Framework.

对不起,伙计们,因为不这样做前面!

Sorry, guys, for not doing this earlier!

阅读全文

相关推荐

最新文章