【发布时间】:2010-11-01 00:15:02
【问题描述】:
在我的数据库中,我有一个名为 hashcode 的列。此列存储图片的哈希码。我想运行一个使用 linq to entity 搜索重复哈希码的查询。
我被“where 子句”卡住了。如何比较哈希码?
var ans = this.pe.TPicture.Where(p => this.pe.TPicture.Count(x => x.Equals(p)) > 1);
【问题讨论】:
标签: c# linq-to-entities