Order by descending is not working on LINQ to Entity

Posted by Vinni on Stack Overflow See other posts from Stack Overflow or by Vinni
Published on 2010-04-15T10:05:36Z Indexed on 2010/04/15 10:43 UTC
Read the original article Hit count: 402

Order by descending is not working on LINQ to Entity In the following Query In place of ascending If I keep descending it is not working. Please help me out

var hosters =
    from e in context.Hosters_HostingProviderDetail
    where e.ActiveStatusID == pendingStateId
    orderby e.HostingProviderName ascending
    select e;

return hosters.ToList();

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about entity-framework