Example #1
0
 public void OrderByInt()
 {
     DataAssert.Same <WebUser>(q => q.OrderBy(w => w.Id));
 }
Example #2
0
 public void GroupByDateTime()
 {
     DataAssert.Same((IQueryable <WebUser> q) => q.GroupBy(w => w.Joined).Select(g => KeyValuePair.Create(g.Key, g.Count())), true);
 }
Example #3
0
 public void OrderByStringDescendingThenByDateTimeDescending()
 {
     DataAssert.Same <WebUser>(q => q.OrderByDescending(w => w.Forename).ThenByDescending(w => w.Joined));
 }
Example #4
0
 public void OrderByDateTimeDescending()
 {
     DataAssert.Same <WebUser>(q => q.OrderByDescending(w => w.Joined));
 }
Example #5
0
 public void OrderByStringDescending()
 {
     DataAssert.Same <WebUser>(q => q.OrderByDescending(w => w.Username));
 }
Example #6
0
 public void OrderByIntDescending()
 {
     DataAssert.Same <WebUser>(q => q.OrderByDescending(w => w.Id));
 }
Example #7
0
 public void OrderByDateTime()
 {
     DataAssert.Same <WebUser>(q => q.OrderBy(w => w.Joined));
 }