Feb 08, 2017 11:59 AM|mamoni.kol2017|LINK
anyone can post what will be query in EF if i have order by clause for 4 columns.
i got one with lambda
var qry = ctx.DestinationTimings.Where(x => x.DestinationID == this.ID)
.OrderBy(t => t.Date ?? DateTime.MaxValue)
.ThenBy(t => SqlFunctions.CharIndex(t.DayOfWeek + ",", "MON,TUE,WED,THU,FRI,SAT,SUN"))
.ThenBy(t => t.Time);
how to have mutiple order by ASC and DESC because in above query there is no ascending or descending word.
how to do the same without lambda with ASC and DESC keyword.
please post a sample query with lambda.