Expression.Invoke在实体框架? [英] Expression.Invoke in Entity Framework?

查看:127
本文介绍了Expression.Invoke在实体框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实体框架不支持 Expression.Invoke 运算符。在尝试使用它时,您会收到以下异常:


LINQ to Entities不支持LINQ表达式节点类型Invoke。有没有人有这个缺少功能的解决方法?我想使用PredicateBuilder详细这里在实体框架中。



编辑1 @marxidad - 我喜欢你的建议,但是这对我有所帮助,可以给你一些建议的解决方案吗?



编辑2 @marxidad - 感谢您的澄清。

解决方案

PredicateBuilder LINQKit 现在支持实体框架。



S orry,guys,不要这样做!


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

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

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

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

Edit 2 @marxidad - Thanks for the clarification.

解决方案

PredicateBuilder and LINQKit now support Entity Framework.

Sorry, guys, for not doing this earlier!

这篇关于Expression.Invoke在实体框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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