From: Paul on
Hi,
How can i do this query with anonymous types;
SELECT DISTINCT IdTable2, Name
FROM Table1
WHERE idTable2 != null

This query return error if the idTable2 is null:
bindingSource1.DataSource=MyDataSet.Table1.Select(c=> new
{Id=c.IdTable2, Nome=c.Name }.Distinct();

Any idea?

Thanks