C# 클래스 Unipluss.TransactionService.DAL.TransactionRepository

상속: ITransactionRepository
파일 보기 프로젝트 열기: unipluss/invoicetransactions 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
tableRequestOptions Microsoft.WindowsAzure.Storage.Table.TableRequestOptions

Private Properties

프로퍼티 타입 설명
AddReIndexRequestIfNeeded void
EnsureTransactionHasCustomerInternalID void
SerializeTransactionAndAddToQueue void

공개 메소드들

메소드 설명
AddOrUpdateTransaction ( Transaction t ) : void

Adds new transaction to table storage or updates an existing item. Throws exception when item is not valid, resolving customer external ID failed or if table storage operation fails.

AddOrUpdateTransaction ( TransactionTableEntity ent ) : void

Inserts or updates (using merge operation) the transaction table entity.

AddOrUpdateTransactionBatch ( IEnumerable batch ) : void

Inserts or updates (using merge operation) a batch of transaction table entities. Also generates IDs for items that do not have them and sets Date to DateTime.Now if it is null.

AddOrUpdateTransactionTotalsItem ( ) : void
AddReIndexableItemBatch ( ) : void
AddTransactionBatchToUpdateQueue ( IEnumerable batch ) : IEnumerable

Adds a batch of transaction items to WebJob queues. Workers process each queue item and add them to transaction table and search index. Can also be used for updating existing items if Transaction.ID is specified. Also generates IDs for items that do not have them and sets Date to DateTime.Now if it is null.

AddTransactionToUpdateQueue ( Transaction t ) : Transaction

Adds the transaction item to WebJob queues. Workers process each queue item and add them to transaction table and search index. Can also be used for updating existing items if Transaction.ID is specified. Also generates ID if it's null and sets Date to DateTime.Now if it isn't set.

DeleteReIndexItemBatch ( ) : void
DeleteTransaction ( int mvanumber, System.Guid id ) : void

Deletes transaction table storage entity that matches the mva number and ID. Throws exception when a entity is found with given ID but entity's mva number does not match with the one given as input.

DeleteTransactionTotalsItemWithID ( ) : void
EnsureStorageCreated ( ) : System.Threading.Tasks.Task
GetReIndexableItemBatch ( Microsoft.WindowsAzure.Storage.Table.TableContinuationToken &token ) : IEnumerable
GetTransactionItemBatch ( Microsoft.WindowsAzure.Storage.Table.TableContinuationToken &token ) : IEnumerable

For batch-processing all entities inside the transactions table.

GetTransactionTotalsItemBatch ( Microsoft.WindowsAzure.Storage.Table.TableContinuationToken &token ) : IEnumerable
GetTransactionsForCustomer ( System.Guid customerInternalId, int dateVal, bool onlyInvoiceable = false ) : Task>
GetTransactionsForInvoicing ( int mvanumber, int dateVal, bool includeId = true ) : Task>
SetTransactionAsBilled ( int mvanumber, System.Guid transactionID, int orderItemID ) : void

비공개 메소드들

메소드 설명
AddReIndexRequestIfNeeded ( ) : void
EnsureTransactionHasCustomerInternalID ( ) : void
SerializeTransactionAndAddToQueue ( Transaction t ) : void

For internal use, skips Transaction validation.

메소드 상세

AddOrUpdateTransaction() 공개 메소드

Adds new transaction to table storage or updates an existing item. Throws exception when item is not valid, resolving customer external ID failed or if table storage operation fails.
public AddOrUpdateTransaction ( Transaction t ) : void
t Transaction Transaction item to add/update
리턴 void

AddOrUpdateTransaction() 공개 메소드

Inserts or updates (using merge operation) the transaction table entity.
public AddOrUpdateTransaction ( TransactionTableEntity ent ) : void
ent Unipluss.TransactionService.Models.TransactionTableEntity
리턴 void

AddOrUpdateTransactionBatch() 공개 메소드

Inserts or updates (using merge operation) a batch of transaction table entities. Also generates IDs for items that do not have them and sets Date to DateTime.Now if it is null.
Thrown when any of the items is not valid or if adding to either table storage or search index failed.
public AddOrUpdateTransactionBatch ( IEnumerable batch ) : void
batch IEnumerable Batch of Transaction items to add/update
리턴 void

AddOrUpdateTransactionTotalsItem() 공개 메소드

public AddOrUpdateTransactionTotalsItem ( ) : void
리턴 void

AddReIndexableItemBatch() 공개 메소드

public AddReIndexableItemBatch ( ) : void
리턴 void

AddTransactionBatchToUpdateQueue() 공개 메소드

Adds a batch of transaction items to WebJob queues. Workers process each queue item and add them to transaction table and search index. Can also be used for updating existing items if Transaction.ID is specified. Also generates IDs for items that do not have them and sets Date to DateTime.Now if it is null.
public AddTransactionBatchToUpdateQueue ( IEnumerable batch ) : IEnumerable
batch IEnumerable Batch of Transaction items to add/update
리턴 IEnumerable

AddTransactionToUpdateQueue() 공개 메소드

Adds the transaction item to WebJob queues. Workers process each queue item and add them to transaction table and search index. Can also be used for updating existing items if Transaction.ID is specified. Also generates ID if it's null and sets Date to DateTime.Now if it isn't set.
public AddTransactionToUpdateQueue ( Transaction t ) : Transaction
t Transaction Transaction item to add/update
리턴 Transaction

DeleteReIndexItemBatch() 공개 메소드

public DeleteReIndexItemBatch ( ) : void
리턴 void

DeleteTransaction() 공개 메소드

Deletes transaction table storage entity that matches the mva number and ID. Throws exception when a entity is found with given ID but entity's mva number does not match with the one given as input.
public DeleteTransaction ( int mvanumber, System.Guid id ) : void
mvanumber int
id System.Guid
리턴 void

DeleteTransactionTotalsItemWithID() 공개 메소드

public DeleteTransactionTotalsItemWithID ( ) : void
리턴 void

EnsureStorageCreated() 공개 메소드

public EnsureStorageCreated ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

GetReIndexableItemBatch() 공개 메소드

public GetReIndexableItemBatch ( Microsoft.WindowsAzure.Storage.Table.TableContinuationToken &token ) : IEnumerable
token Microsoft.WindowsAzure.Storage.Table.TableContinuationToken
리턴 IEnumerable

GetTransactionItemBatch() 공개 메소드

For batch-processing all entities inside the transactions table.
public GetTransactionItemBatch ( Microsoft.WindowsAzure.Storage.Table.TableContinuationToken &token ) : IEnumerable
token Microsoft.WindowsAzure.Storage.Table.TableContinuationToken For continuing a batch query or null to start from the beginning
리턴 IEnumerable

GetTransactionTotalsItemBatch() 공개 메소드

public GetTransactionTotalsItemBatch ( Microsoft.WindowsAzure.Storage.Table.TableContinuationToken &token ) : IEnumerable
token Microsoft.WindowsAzure.Storage.Table.TableContinuationToken
리턴 IEnumerable

GetTransactionsForCustomer() 공개 메소드

public GetTransactionsForCustomer ( System.Guid customerInternalId, int dateVal, bool onlyInvoiceable = false ) : Task>
customerInternalId System.Guid
dateVal int
onlyInvoiceable bool
리턴 Task>

GetTransactionsForInvoicing() 공개 메소드

public GetTransactionsForInvoicing ( int mvanumber, int dateVal, bool includeId = true ) : Task>
mvanumber int
dateVal int
includeId bool
리턴 Task>

SetTransactionAsBilled() 공개 메소드

public SetTransactionAsBilled ( int mvanumber, System.Guid transactionID, int orderItemID ) : void
mvanumber int
transactionID System.Guid
orderItemID int
리턴 void

프로퍼티 상세

tableRequestOptions 보호되어 있는 프로퍼티

protected TableRequestOptions,Microsoft.WindowsAzure.Storage.Table tableRequestOptions
리턴 Microsoft.WindowsAzure.Storage.Table.TableRequestOptions