Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
        /// <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());
        }