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

            return(Author.Create(src));
        }