ICustomerRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
Interface for customer repository.
Implements
Methods
Delete(IEnumerable<int>)
Deletes the given list of customers from the repository. Begins tracking the given list of customers in the Detached state such that it will be deleted in the database when SaveChanges() is called.
Parameters
Name | Description |
---|---|
The customer Identifiers to delete. |
GetAsync(DateTime?, DateTime?, int?, int?, string, string)
Asynchronously gets a list of customers from this repository.
Parameters
Name | Description |
---|---|
(Optional) Specifies a filter for customer created after a given start date. | |
(Optional) Specifies a filter for customer created before a given end date. | |
(Optional) The number of records to skip before the first record found. | |
(Optional) The number of records to take after the first record found. | |
(Optional) A comma separated list of nested entity names to retrieve. | |
(Optional) Order by expression. |
Returns
Name | Description |
---|---|
A task that represents the asynchronous get operation. The task result contains the list of customers found. |
GetByCodeAsync(string)
Asynchronously gets the Customer with the given code value. If no Customer entity is found in the context or the store, then null is returned.
Parameters
Name | Description |
---|---|
The customer code of the customer to be found. |
Returns
Name | Description |
---|---|
A task that represents the asynchronous get operation. The task result contains the Customer found, or null. |
GetLicensesByCustomerCodeAsync(string)
Asynchronously gets the licenses for a given customer code.
Parameters
Name | Description |
---|---|
The customer code. |
Returns
Name | Description |
---|---|
A task that represents the asynchronous get operation. The task result contains the list of License found, or null. |
GetOrdersByCustomerCodeAsync(string)
Asynchronously gets the orders for a given customer code.
Parameters
Name | Description |
---|---|
The customer code. |
Returns
Name | Description |
---|---|
A task that represents the asynchronous get operation. The task result contains the list of Order found, or null. |
GetProductsByCustomerCodeAsync(string)
Asynchronously gets the products for a given customer code.
Parameters
Name | Description |
---|---|
The customer code. |
Returns
Name | Description |
---|---|
A task that represents the asynchronous get operation. The task result contains the list of Product found, or null. |
Last updated