鉴于以下LINQ to SQL查询: var test = from i in Imports where i.IsActive select i; 解释的SQL语句是: SELECT [t0].[id] AS [Id] …. FROM [Imports] AS [t0] WHERE [t0].[isActive] = 1 假设我想在select中执行一些无法转换为SQL的操作。 我的理解是,传统的方法来做到这一点是做AsEnumerable()从而把它转换成一个可行的对象。 鉴于这个更新的代码: var test = from i in Imports.AsEnumerable() where i.IsActive select new { // Make some method call }; 和更新的SQL: SELECT [t0].[id] AS [Id] … […]