LINQ to Entities does not recognize the method 'Method name' method

前端 未结 2 1056
予麋鹿
予麋鹿 2021-01-02 19:32

I\'m having a similar problem that was asked here: LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be trans

2条回答
  •  长情又很酷
    2021-01-02 20:16

    Instead of using reflection, you should dynamically create an Expression> and pass it to OrderBy.

    Take a look here to understand how create a dynamic query.

提交回复
热议问题