Expression.Invoke in Entity Framework?

后端 未结 2 1399
名媛妹妹
名媛妹妹 2020-12-08 04:44

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

\"The L

相关标签:
2条回答
  • 2020-12-08 05:22

    The Entity framework converts LINQ expressions into Entity Command trees and within that only its canonical functions are supported. You'd have to use the command trees with canonical functions to do something like PredicateBuilder.

    0 讨论(0)
  • 2020-12-08 05:30

    PredicateBuilder and LINQKit now support Entity Framework.

    Sorry, guys, for not doing this earlier!

    0 讨论(0)
提交回复
热议问题