could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable'
通常會發生在
第一個集合 left join 第二個集合這邊
第一個集合這裡可能要先撈取出來(.ToList() ....etc)
然後也要記得把握住前後集合順序
from 數量少的join 數量多的on
即可修正
Ref:
could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable'
could not be translated. Either rewrite the query in a form that can be translated
留言
張貼留言