Esempio n. 1
0
 private async Task DeleteInvoiceIdIndexAsync(InvoiceEntity entity)
 {
     await _invoiceIdIndexStorage.DeleteAsync(GetInvoiceIdIndexPartitionKey(entity.RowKey), GetInvoiceIdIndexRowKey());
 }
Esempio n. 2
0
        public async Task <Invoice> GetAsync(string merchantId, string invoiceId)
        {
            InvoiceEntity entity = await _storage.GetDataAsync(GetPartitionKey(merchantId), GetRowKey(invoiceId));

            return(Mapper.Map <Invoice>(entity));
        }
Esempio n. 3
0
        private async Task InsertInvoiceIdIndexAsync(InvoiceEntity entity)
        {
            var index = AzureIndex.Create(GetInvoiceIdIndexPartitionKey(entity.RowKey), GetInvoiceIdIndexRowKey(), entity);

            await _invoiceIdIndexStorage.InsertOrReplaceAsync(index);
        }