Example #1
0
 /// <summary>
 /// Adds an attribute value to the attributes collection.
 /// </summary>
 /// <typeparam name="T">Type of the entity</typeparam>
 /// <param name="attributeName">The property expressions containing the name of the attribute</param>
 /// <param name="value">The attribute value.</param>
 public static void AddAttribute <T>(this QueryByAttribute query, Expression <Func <T, object> > attributeName, object value) where T : Entity
 {
     query.AddAttributeValue(LogicalName.GetName(attributeName), value);
 }
Example #2
0
 /// <summary>
 /// Adds an order to the orders collection.
 /// </summary>
 /// <typeparam name="T">Type of the entity</typeparam>
 /// <param name="attributeName">The property expressions containing the name of the attribute</param>
 /// <param name="orderType">The order for that attribute.</param>
 public static void AddOrder <T>(this QueryByAttribute query, Expression <Func <T, object> > attributeName, OrderType orderType) where T : Entity
 {
     query.AddOrder(LogicalName.GetName(attributeName), orderType);
 }
Example #3
0
 /// <summary>
 /// Sets QueryByAttribute paging parameters to next page
 /// </summary>
 public static void NextPage(this QueryByAttribute query, string pagingCookie)
 {
     query.PageInfo.PageNumber++;
     query.PageInfo.PagingCookie = pagingCookie;
 }