I am having some trouble trying to make a cast or make the right conversion.
I have a query of type IQueryable<T> T been a class:
var query = (from x in query
group x by US.FirstName into g
select g).Distinct();
I receive this error :
Cannot implicitly convert type
System.Linq.IQueryable<System.Link.IGrouping<string,T>>toSystem.Linq.IQueryable<T>.>>
What I want to perform in fact is to return unique values of a query.
but this will be rather arbitrary : you should do an
OrderByor anOrderByDescendingfound with “your” syntax