Expression.Invoke in Entity Framework?

后端 未结 2 1413
名媛妹妹
名媛妹妹 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.

提交回复
热议问题