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

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

Private Properties

프로퍼티 타입 설명
EnsureTotalsIndex System.Threading.Tasks.Task
EnsureTransactionIndex System.Threading.Tasks.Task

공개 메소드들

메소드 설명
AddOrUpdateTotalsItem ( ) : void
AddToIndex ( ) : void

Adds transaction items to search index or updates existing items. When transaction amount is > 1, adds multiple items to search index for facet queries. Converts all entities to batches of up to 1000 to efficiently update search index. Throws exception when search index operation fails.

AddToIndex ( Transaction t ) : void

Adds the transaction item to search index. Can also be used for updating existing items by specifying the Transaction.ID value. Throws exception when item is not valid, resolving customer external ID failed or if search index operation fails.

DeleteFromIndex ( int mvanumber, System.Guid id ) : void

Removes the transaction from search index that matches the mva number and ID. Can delete multiple index items when transaction amount was > 1.

DeleteOldTransactions ( ) : void
DeleteTotalsItemWithID ( ) : void
EnsureStorageCreated ( ) : System.Threading.Tasks.Task
GetTotalsItemsForCustomer ( System.Guid customerInternalID, string productID, int dateVal ) : IEnumerable
GetTransactionById ( int mvanumber, System.Guid id ) : List

Gets the transaction item(s) matching the mva number and ID from search index. Can return multiple items if transaction Amount > 1.

GetTransactionCountsForTopCustomers ( int mvanumber, string productID, int startDateVal, int endDateVal ) : List

Finds top 10 customers who have the highest amount of transactions for a specific product inside the time period. Also returns a 11th item that contains the amount of transactions for the rest of the customers that didn't make it into the top 10.

GetTransactionCountsPerMonthForProduct ( int mvanumber, string productID, int startDateVal, int endDateVal ) : List

Finds transaction counts for a specific product in every month.

GetTransactionCountsPerMonthPerProduct ( int mvanumber, string customerInternalID, int startDateVal, int endDateVal ) : List

Finds customer's transaction counts per product per month.

GetUniqueProductIDs ( int mvanumber ) : List

Gets the names of all the products for given mva number that have transactions added to the search index.

비공개 메소드들

메소드 설명
EnsureTotalsIndex ( ) : System.Threading.Tasks.Task
EnsureTransactionIndex ( ) : System.Threading.Tasks.Task

메소드 상세

AddOrUpdateTotalsItem() 공개 메소드

public AddOrUpdateTotalsItem ( ) : void
리턴 void

AddToIndex() 공개 메소드

Adds transaction items to search index or updates existing items. When transaction amount is > 1, adds multiple items to search index for facet queries. Converts all entities to batches of up to 1000 to efficiently update search index. Throws exception when search index operation fails.
public AddToIndex ( ) : void
리턴 void

AddToIndex() 공개 메소드

Adds the transaction item to search index. Can also be used for updating existing items by specifying the Transaction.ID value. Throws exception when item is not valid, resolving customer external ID failed or if search index operation fails.
public AddToIndex ( Transaction t ) : void
t Transaction
리턴 void

DeleteFromIndex() 공개 메소드

Removes the transaction from search index that matches the mva number and ID. Can delete multiple index items when transaction amount was > 1.
public DeleteFromIndex ( int mvanumber, System.Guid id ) : void
mvanumber int
id System.Guid
리턴 void

DeleteOldTransactions() 공개 메소드

public DeleteOldTransactions ( ) : void
리턴 void

DeleteTotalsItemWithID() 공개 메소드

public DeleteTotalsItemWithID ( ) : void
리턴 void

EnsureStorageCreated() 공개 메소드

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

GetTotalsItemsForCustomer() 공개 메소드

public GetTotalsItemsForCustomer ( System.Guid customerInternalID, string productID, int dateVal ) : IEnumerable
customerInternalID System.Guid
productID string
dateVal int
리턴 IEnumerable

GetTransactionById() 공개 메소드

Gets the transaction item(s) matching the mva number and ID from search index. Can return multiple items if transaction Amount > 1.
public GetTransactionById ( int mvanumber, System.Guid id ) : List
mvanumber int
id System.Guid
리턴 List

GetTransactionCountsForTopCustomers() 공개 메소드

Finds top 10 customers who have the highest amount of transactions for a specific product inside the time period. Also returns a 11th item that contains the amount of transactions for the rest of the customers that didn't make it into the top 10.
public GetTransactionCountsForTopCustomers ( int mvanumber, string productID, int startDateVal, int endDateVal ) : List
mvanumber int required
productID string required
startDateVal int required
endDateVal int required
리턴 List

GetTransactionCountsPerMonthForProduct() 공개 메소드

Finds transaction counts for a specific product in every month.
public GetTransactionCountsPerMonthForProduct ( int mvanumber, string productID, int startDateVal, int endDateVal ) : List
mvanumber int required
productID string required
startDateVal int required
endDateVal int required
리턴 List

GetTransactionCountsPerMonthPerProduct() 공개 메소드

Finds customer's transaction counts per product per month.
public GetTransactionCountsPerMonthPerProduct ( int mvanumber, string customerInternalID, int startDateVal, int endDateVal ) : List
mvanumber int required
customerInternalID string required
startDateVal int required
endDateVal int required
리턴 List

GetUniqueProductIDs() 공개 메소드

Gets the names of all the products for given mva number that have transactions added to the search index.
public GetUniqueProductIDs ( int mvanumber ) : List
mvanumber int required
리턴 List