Esempio n. 1
0
 public IQueryable <T> CreateQuery <T>() where T : ITableEntity, new()
 {
     return(_table
            .CreateQuery <T>()
            .AsQueryable()
            .Where(e => e.PartitionKey == TablePartitionKeys.Get <T>()));
 }
Esempio n. 2
0
        public async Task <T> RetrieveAsync <T>(string rowKey)
            where T : class, ITableEntity
        {
            var operation = TableOperation.Retrieve <T>(TablePartitionKeys.Get <T>(), rowKey);

            return((await _table.ExecuteAsync(operation)).Result as T);
        }