I wonder why I am not able to find this error on stackoverflow. In Linq to SQL, i am selecting an anonymous object like
var something = from a in .....
......
......
select new
{
myParameter = a.Something
myListParameter = (from b in ........
select b)
}
.
.
.
.
something = something.Distinct(); //This is giving error
In selecting anonymous type object above, in one of the properties I am selecting another list. I guess this might be causing the issue. I wonder if there is a workaround.