IOrderRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
Interface for order repository.
Implements
Methods
Delete(IEnumerable<int>)
Deletes a list of order with the given primary key values. Begins tracking the given entities in the Detached state such that they will be deleted in the database when SaveChanges() is called.
Parameters
The order primary key ids to delete.
DeleteResourceAsync(int, IEnumerable<int>)
Asynchronously deletes the resources for a given order. Begins tracking the given entities in the Detached state such that they will be deleted in the database when SaveChanges() is called.
Parameters
The order primary key.
List of resources primary keys.
Returns
A task that represents the asynchronous delete operation.
GetResourcesAsync(int)
Asynchronously gets a list of resources for the given order.
Parameters
The order primary key.
Returns
An asynchronous result that yields the order resources.
InsertResourceAsync(int, Resource)
Asynchronously insert the given resource in the repository for the specified order.
Parameters
The order primary key.
The resource to add.
Returns
A task that represents the asynchronous insert operation.
QueryProductsAsync(int, string, string, string, string, int?, int?, CancellationToken)
Asynchronously query a list of ProductOrder for a given order.
Parameters
Specifies the orde id.
(Optional) Specifies a select expression.
(Optional) Specifies the filter expression.
(Optional) Order by expression.
(Optional) A comma separated list of nested entity names to retrieve.
(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 token that allows processing to be cancelled.
Returns
A task that represents the asynchronous get operation.
Last updated