我有这个 linq 查询,我想根据 MAILADR 列删除所有重复项(但保留其他列):
Dim dataObject = (From a In db.TABLE1 Select New With {
.ID = a.BENUTZERNR,
.MAILADR = a.EMAIL,
.BENUTZERGRP = a.USRGRP
}) _
.Union(
(From b In db.TABLE12 Select New With {
.ID = b.ID,
.MAILADR = b.MAILADR,
.BENUTZERGRP = b.BENUTZERGRP
}) _
)