Skip to content

Instantly share code, notes, and snippets.

@awithy
Created January 26, 2012 17:43
Show Gist options
  • Save awithy/1683982 to your computer and use it in GitHub Desktop.
Save awithy/1683982 to your computer and use it in GitHub Desktop.
ITableStorageService
public interface ITableStorageService
{
T Get<T>(TableUri tableUri, string partitionKey, string rowKey) where T : TableEntityBase;
void Put<T>(TableUri tableUri, T entity) where T : TableEntityBase;
void CreateTableIfNotExist(TableUri tableUri);
void Delete<T>(TableUri tableUri, string partitionKey, string rowKey) where T : TableEntityBase;
void BulkDelete<T>(TableUri tableUri, string partitionKey, Func<T, bool> entityPredicate) where T : TableEntityBase;
IEnumerable<T> GetAll<T>(TableUri tableUri, string partitionKey) where T : TableEntityBase;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment