public static IPagedDataService<Photo> GetGroupPhotosPagedDataService(Group group) { var orderBy = new System.Collections.Generic.KeyValuePair<object, Bobs.OrderBy.OrderDirection> (GroupPhoto.Columns.DateTime, OrderBy.OrderDirection.Descending); return group.ChildPhotos(new Q(Photo.Columns.IsInCaptionCompetition, false), orderBy); }