C# Class PRTools.Data.CustomerRepository

Inheritance: ICustomerRepository
显示文件 Open project: AcklenAvenue/PRTools

Public Methods

Method Description
Create ( CreateCustomerRequest createCustomerRequest ) : void
CustomerRepository ( IMappingEngine mappingEngine ) : System
Delete ( int customerId ) : void
Get ( int customerId ) : Domain.Customer
GetAllShallow ( ) : IEnumerable
GetByCustomersByIds ( IList customerIds ) : IEnumerable
GetChildrenCount ( int customerId ) : int
GetChildrenCustomers ( int parentCustomerId ) : IEnumerable
GetCustomerDocumentCount ( int customerId ) : int
NameExists ( string name ) : bool
QuickSearch ( string searchString ) : IEnumerable
Update ( UpdateCustomerRequest updateCustomerRequest ) : void

Method Details

Create() public method

public Create ( CreateCustomerRequest createCustomerRequest ) : void
createCustomerRequest PRTools.Domain.Commands.CreateCustomerRequest
return void

CustomerRepository() public method

public CustomerRepository ( IMappingEngine mappingEngine ) : System
mappingEngine IMappingEngine
return System

Delete() public method

public Delete ( int customerId ) : void
customerId int
return void

Get() public method

public Get ( int customerId ) : Domain.Customer
customerId int
return Domain.Customer

GetAllShallow() public method

public GetAllShallow ( ) : IEnumerable
return IEnumerable

GetByCustomersByIds() public method

public GetByCustomersByIds ( IList customerIds ) : IEnumerable
customerIds IList
return IEnumerable

GetChildrenCount() public method

public GetChildrenCount ( int customerId ) : int
customerId int
return int

GetChildrenCustomers() public method

public GetChildrenCustomers ( int parentCustomerId ) : IEnumerable
parentCustomerId int
return IEnumerable

GetCustomerDocumentCount() public method

public GetCustomerDocumentCount ( int customerId ) : int
customerId int
return int

NameExists() public method

public NameExists ( string name ) : bool
name string
return bool

QuickSearch() public method

public QuickSearch ( string searchString ) : IEnumerable
searchString string
return IEnumerable

Update() public method

public Update ( UpdateCustomerRequest updateCustomerRequest ) : void
updateCustomerRequest PRTools.Domain.Commands.UpdateCustomerRequest
return void