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

问题描述

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

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在实体框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 18:48