C# Class PersistenceModel.Write.ClientRepository

Inheritance: IClientRepository
显示文件 Open project: AdrianFreemantle/DDD Class Usage Examples

Public Methods

Method Description
ClientRepository ( IDocumentStore documentStore ) : Domain.Client.Clients
ClientRepository ( IStoreEvents eventStore, IPublishEvents eventPublisher ) : System
Get ( IHaveIdentity id ) : Client
Get ( IdentityNumber identityNumber ) : Client
Save ( Client client ) : void

Method Details

ClientRepository() public method

public ClientRepository ( IDocumentStore documentStore ) : Domain.Client.Clients
documentStore IDocumentStore
return Domain.Client.Clients

ClientRepository() public method

public ClientRepository ( IStoreEvents eventStore, IPublishEvents eventPublisher ) : System
eventStore IStoreEvents
eventPublisher IPublishEvents
return System

Get() public method

public Get ( IHaveIdentity id ) : Client
id IHaveIdentity
return Domain.Client.Clients.Client

Get() public method

public Get ( IdentityNumber identityNumber ) : Client
identityNumber Domain.Client.ValueObjects.IdentityNumber
return Domain.Client.Clients.Client

Save() public method

public Save ( Client client ) : void
client Domain.Client.Clients.Client
return void