public static BlogPictureInfoEntity Create(IBlogPictureInfoData src) { var result = new BlogPictureInfoEntity { PartitionKey = GeneratePartitionKey(), RowKey = GenerateRowKey(src.BlogId), FileName = src.FileName, ContentType = src.ContentType, ImageUrl = src.ImageUrl }; return(result); }
public async Task SaveAsync(IBlogPictureInfoData fileInfoData) { var newEntity = BlogPictureInfoEntity.Create(fileInfoData); await _blogPictureInfoTableStorage.InsertOrReplaceAsync(newEntity); }