public IEnumerable <TResult> Execute(
            IDatabase database,
            IDictionary <string, object> parameters,
            Transaction transaction)
        {
            // Verify parameters
            this.VerifyParameters(parameters);

            // A shared stored procedure creates the query everytime the Execute method was
            // called
            TableQuery <TResult> query = new TableQuery <TResult>(database, this.expression);

            return(query.Execute(parameters, transaction));
        }
Exemplo n.º 2
0
        private IEnumerable <CustomerEntity> GetCustomerEntities(CloudTable table)
        {
            TableQuery <CustomerEntity> query = table.CreateQuery <CustomerEntity>();

            return(query.Execute());
        }