Hello,
My code is:
var ListofRoute = _DatabaseContext.RouteMaster.ToList();
return ListofRoute.ToArray();
I need to select distinct record only. I tries :
var ListofRoute = _DatabaseContext.RouteMaster.Distinct().ToList();
return ListofRoute.ToArray();
But its not working. Please help.
Thanks in advance


Ramesh PalanivelRank #372 · 6.8K reputationPosted Oct 11, 2017, 9:02 PM EDT
Pramod ThakurRank #400 · 6.3K reputationPosted Oct 11, 2017, 9:36 PM EDT