Expression.Or, The parameter 'item' is not in scope

前端 未结 5 1148
一整个雨季
一整个雨季 2021-02-09 00:23

I am trying to write a static function to Or two expressions, but recieve the following error:

The parameter \'item\' is not in scope.

Descrip

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-09 00:47

    For those, who found this page by a search engine and is going to use the PredicateBuilder from Ben&Joe Albahari, watch out, since it does not work with the Entity Framework.

    Try this fixed version instead.

提交回复
热议问题