无法重用Linq2Entity Query

You searched for 'linq to entities does not recognize the method 'system.linq.iqueryable'

"By design, LINQ to Entities requires the whole LINQ query expression to be translated to a server query. Only a few uncorrelated subexpressions (expressions in the query that do not depend on the results from the server) are evaluated on the client before the query is translated. Arbitrary method invocations that do not have a known translation, like GetProducts() in this case, are not supported."

这是一个悲剧的开始

原文地址:https://www.cnblogs.com/jinzhao/p/2135072.html