public static IQueryable <UtilityRow> CreateRowQuery(string accountName, string tableName, DbTableDataContext context) { DbTableRowQueryProvider <UtilityRow> dbTableRowQueryProvider = new DbTableRowQueryProvider <UtilityRow>(context, accountName, tableName); if (context.SignedAccountIdentifier != null && (context.SignedAccountIdentifier.StartingPartitionKey != null || context.SignedAccountIdentifier.StartingRowKey != null || context.SignedAccountIdentifier.EndingPartitionKey != null || context.SignedAccountIdentifier.EndingRowKey != null)) { KeyBounds keyBound = new KeyBounds() { MinPartitionKey = context.SignedAccountIdentifier.StartingPartitionKey, MinRowKey = context.SignedAccountIdentifier.StartingRowKey, MaxPartitionKey = context.SignedAccountIdentifier.EndingPartitionKey, MaxRowKey = context.SignedAccountIdentifier.EndingRowKey }; dbTableRowQueryProvider.SASKeyBounds = keyBound; } return(new DbTableRowQueryable <UtilityRow>(dbTableRowQueryProvider)); }
internal LinqToXmlTranslator(string accountName, string tableName, Expression linqExpression, Dictionary <string, string> continuationToken, int maxRowCount, bool isBatchRequest, KeyBounds sasKeyBounds) { this.m_linqExpression = linqExpression; this.MaxRowCount = maxRowCount; this.XmlQuery = new StringBuilder(); this.WhereClause = new StringBuilder(); this.OrderByClause = new StringBuilder(); this.PartialClause = new StringBuilder(); this.Parameters = new List <ParameterRecord>(); this._accountName = accountName; this._tableName = tableName; this._continuationToken = continuationToken; this.TakeCount = -1; this.ProjectedPropertyCount = -1; this.m_isBatchRequest = isBatchRequest; this.m_recursionCount = 0; this.SASKeyBounds = sasKeyBounds; }