コード例 #1
0
        public async Task <IGlobalCheckInfo> DeleteAsync(DateTime timestamp)
        {
            var partitionKey = GlobalCheckInfoEntity.GeneratePartitionKey(timestamp);
            var rowKey       = GlobalCheckInfoEntity.GenerateRowKey(timestamp);

            return(await _tableStorage.DeleteAsync(partitionKey, rowKey));
        }
コード例 #2
0
        public async Task <IGlobalCheckInfo> AddOrUpdateAsync(IGlobalCheckInfo entity)
        {
            var newEntity = GlobalCheckInfoEntity.Create(entity);
            await _tableStorage.InsertAndGenerateRowKeyAsDateTimeAsync(newEntity, newEntity.StartDateTime);

            return(newEntity);
        }
コード例 #3
0
        public async Task <IEnumerable <IGlobalCheckInfo> > GetAllByYearAsync(int year)
        {
            var partitionKey = GlobalCheckInfoEntity.GeneratePartitionKey(year);

            return(await _tableStorage.GetDataAsync(partitionKey));
        }