/// <summary> /// Executes the query. /// </summary> /// <param name="query">The query.</param> /// <returns>The returned elements.</returns> public static IList <T> All(CloudTableQuery <T> query) { QueryHelper <T> helper = new QueryHelper <T>(query); return(helper.ExecuteSegmented(false)); }
/// <summary> /// Executes the query and returns the first element, if any. /// </summary> /// <param name="query">The query.</param> /// <returns>The first element.</returns> public static T FirstOrDefault(CloudTableQuery <T> query) { QueryHelper <T> helper = new QueryHelper <T>(query); return(helper.ExecuteSegmented(true).FirstOrDefault()); }