Skip to content

Instantly share code, notes, and snippets.

@mhinze
Created September 24, 2009 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhinze/192948 to your computer and use it in GitHub Desktop.
Save mhinze/192948 to your computer and use it in GitHub Desktop.
public interface IOrderRepository : IRepository<Order>
{
Order[] GetAllOrderForCustomer(Customer customer);
int GetCountOfOrdersForCustomer(Customer customer);
bool HasOpenOrders(Customer customer);
Order[] GetAllOpenOrders(Customer customer);
Order[] GetOrdersHavingRefunds(Customer customer);
Order[] GetOrdersWithFundsAvailableForRefund(Customer customer);
Order[] GetAllSignificantOrderForCustomer(Customer customer);
Order[] GetBySearchCriteria(IOrderCriteria criteria);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment