Exemplo n.º 1
0
        /// <summary>
        /// Gets records by row key. This method may be slow if there is a high volume of
        /// data across many partitions, prefer to use <see cref="GetByPartitionKey(string)"/>
        /// </summary>
        /// <param name="rowKey">The row key.</param>
        /// <param name="filter">The filter.</param>
        /// <returns>IEnumerable&lt;T&gt;.</returns>
        public IEnumerable <T> GetByRowKey(string rowKey, Func <T, bool> filter)
        {
            var records = CreateRecords(_tableStore.GetByRowKey(rowKey));

            if (filter != null)
            {
                records = records.Where(filter);
            }

            return(records);
        }