Beispiel #1
0
 public async Task DeleteById(string id)
 {
     await _authorTablestorage.DeleteAsync(AuthorEntity.GeneratePartitionKey(), id);
 }
Beispiel #2
0
 public async Task InsertAsync(IAuthor author)
 {
     await _authorTablestorage.InsertOrMergeAsync(AuthorEntity.Create(author));
 }
Beispiel #3
0
 public async Task <IEnumerable <IAuthor> > GetList()
 {
     return(await _authorTablestorage.GetDataAsync(AuthorEntity.GeneratePartitionKey()));
 }
Beispiel #4
0
        public async Task <Author> GetByIdAsync(string id)
        {
            var src = await _authorTablestorage.GetDataAsync(AuthorEntity.GeneratePartitionKey(), id);

            return(Author.Create(src));
        }