Last post Sep 19, 2017 01:04 PM by tapan2017
Sep 13, 2017 09:50 AM|tapan2017|LINK
this is very simple way to sort by multiple column.
var qry = ctx.DestinationTimings.Where(x => x.DestinationID == this.ID)
.OrderBy(t => t.Date ?? DateTime.MaxValue)
.ThenBy(t => t.DayOfWeek)
.ThenBy(t => t.Time);
i like to know suppose when we work with generic repository then how could i sort multiple columns easy way. suppose first column asc order and next two columns desc order. suppose table has 10 columns.
please give me a easy and simple solution. thanks
Sep 14, 2017 01:51 PM|Billy Liu|LINK
Please refer to the links below for solution:
Sep 19, 2017 01:04 PM|tapan2017|LINK
i have checked you links but code out there was complicated to understand because i am not advance developer. anyways thanks for help