Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 10, 2012 10:19 PM by ignatandrei
May 10, 2012 10:11 PM|LINK
i have the following on my action method:-
var result = repository.visitsearch(datefrom, dateto, CountryID).OrderByDescending(d => d.VisitDate).ToList();
which calls the following repository.visitsearch method:-
public IQueryable<VisitSearch> visitsearch(DateTime? datefrom, DateTime? dateto, int countryid)
var vs = (from v in entities.Visits
//code goes here....
My question is :- will the OrderByDescending(d => d.VisitDate) on my action method be executed on the database level OR in the application server???
May 10, 2012 10:19 PM|LINK
Will the OrderBY for an IQuerable be executed in the Database or in the application server