我在 VB 中的 DataTable 上使用 Linq 查询,我只想从 5 个项目的列表中带回唯一的表单名称和 GUID:
我将 .Distinct 添加到我的查询中,但它仍然带回图像中看到的重复结果。
Dim qry = (
From d In Data
Where d("FormGUID").ToString IsNot ""
Select New With {
.FormName = d("Form").ToString, #
.FormGUID = d("FormGUID").ToString}
).Distinct
我如何只选择 2 个不同的行?