我正在向实体对象编写查询,是否可以在列上使用 distinct ?以下是我的查询
query = From r In objEntity.W_PDD
Join p In objEntity.W_PER
On r.PER_NO Equals p.PER_NO
Where p.RECEIVED_DATE = DateTime.Today
Order By r.PER_NO Select r
我正在向实体对象编写查询,是否可以在列上使用 distinct ?以下是我的查询
query = From r In objEntity.W_PDD
Join p In objEntity.W_PER
On r.PER_NO Equals p.PER_NO
Where p.RECEIVED_DATE = DateTime.Today
Order By r.PER_NO Select r