示例#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));
        }