public PagedTableEntityWriter(StorageContext parentContext, nStoreOperation operation, int pageSize) { _pageSize = pageSize > 100 ? 100 : pageSize; _operation = operation; _parentContext = parentContext; }
public static IQueryable <T> Query <T>(this StorageContext context, string partitionKey, int maxItems = 0, TableContinuationToken continuationToken = null) where T : new() { return(context.QueryAsync <T>(partitionKey, maxItems, continuationToken).GetAwaiter().GetResult()); }
public static void Insert <T>(this StorageContext context, IEnumerable <T> models) where T : new() { context.InsertAsync <T>(models).GetAwaiter().GetResult(); }
public static T Query <T>(this StorageContext context, string partitionKey, string rowKey) where T : new() { return(context.QueryAsync <T>(partitionKey, rowKey).GetAwaiter().GetResult()); }