【发布时间】:2012-10-29 18:01:06
【问题描述】:
我正在使用 Linq to Entities 并收到此错误
The method Distinct is not supported
在这行代码
var typeIds = _context.AttributeValues.Select(av => av.AttributeTypeId).Distinct();
这是为什么?
【问题讨论】:
-
您使用的是 SQL Server 还是其他具有自己的 LINQ-to-Entities 提供程序的数据库?
-
或者这是 WCF 数据服务?
-
我正在使用 SQL Server 和 WCF 数据服务。
标签: entity-framework-4 distinct wcf-data-services