OrderBy with Dynamic Linq and one to many relationship in EF?

In order to accomplish this you need to pass in a parameter of Funt PerformSearch(Func selectCriteria) { return db.Actions. Include("Menus"). Include("ActionDetails") .

Where(x => x.ActionDetails. Any(y => y.Language. Culture == _currentCulture)) .

OrderBy(y => y.ActionDetails. Select(**selectCriteria**).Max()) . Skip((pager.

Index - 1) * pager. Take). Take(pager.

Take) .ToList(); }.

In order to accomplish this you need to pass in a parameter of Funt searchCriteria Not sure what your method signature is like but this would work if you plan on returning a List public List PerformSearch(Func selectCriteria) { return db.Actions. Include("Menus"). Include("ActionDetails") .

Where(x => x.ActionDetails. Any(y => y.Language. Culture == _currentCulture)) .

OrderBy(y => y.ActionDetails. Select(**selectCriteria**).Max()) . Skip((pager.

Index - 1) * pager. Take). Take(pager.

Take) .ToList(); }.

OrderBy(y => y.ActionDetails. Select(z => z. Index - 1) * pager.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions