C# Class Investor.Common.Service.Client.Data.ClientRepository

Inheritance: IClientRepository
Mostrar archivo Open project: johnhinz/Investor

Protected Properties

Property Type Description
_db InvestorContext

Public Methods

Method Description
ClientRepository ( ) : System.Collections.Generic
Create ( ClientPoco client ) : void
CreateAddress ( long id, ClientAddressPoco address ) : void
CreatePhoneNumber ( long id, ClientPhoneNumberPoco phonenumber ) : void
DeleteAddress ( long clientid, long addressid ) : void
DeleteClient ( long id ) : void
DeletePhoneNumber ( long clientid, long phonenumberid ) : void
Read ( long id ) : ClientPoco
ReadAddresses ( long id ) : IEnumerable
ReadFirstName ( string firstname ) : IEnumerable
ReadLastName ( string searchString ) : IEnumerable
ReadOneAddress ( long clientId, long addressId ) : IEnumerable
ReadOnePhoneNumber ( long clientId, long phonenumberId ) : IEnumerable
ReadPhoneNumbers ( long id ) : IEnumerable
UpdateAddress ( long clientId, long addressId, ClientAddressPoco address ) : void
UpdateClient ( ClientPoco client ) : void
UpdatePhoneNumber ( long clientId, long PhoneNumberId, ClientPhoneNumberPoco phonenumber ) : void

Method Details

ClientRepository() public method

public ClientRepository ( ) : System.Collections.Generic
return System.Collections.Generic

Create() public method

public Create ( ClientPoco client ) : void
client Investor.Common.Shared.Pocos.ClientPoco
return void

CreateAddress() public method

public CreateAddress ( long id, ClientAddressPoco address ) : void
id long
address Investor.Common.Shared.Pocos.ClientAddressPoco
return void

CreatePhoneNumber() public method

public CreatePhoneNumber ( long id, ClientPhoneNumberPoco phonenumber ) : void
id long
phonenumber Investor.Common.Shared.Pocos.ClientPhoneNumberPoco
return void

DeleteAddress() public method

public DeleteAddress ( long clientid, long addressid ) : void
clientid long
addressid long
return void

DeleteClient() public method

public DeleteClient ( long id ) : void
id long
return void

DeletePhoneNumber() public method

public DeletePhoneNumber ( long clientid, long phonenumberid ) : void
clientid long
phonenumberid long
return void

Read() public method

public Read ( long id ) : ClientPoco
id long
return Investor.Common.Shared.Pocos.ClientPoco

ReadAddresses() public method

public ReadAddresses ( long id ) : IEnumerable
id long
return IEnumerable

ReadFirstName() public method

public ReadFirstName ( string firstname ) : IEnumerable
firstname string
return IEnumerable

ReadLastName() public method

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

ReadOneAddress() public method

public ReadOneAddress ( long clientId, long addressId ) : IEnumerable
clientId long
addressId long
return IEnumerable

ReadOnePhoneNumber() public method

public ReadOnePhoneNumber ( long clientId, long phonenumberId ) : IEnumerable
clientId long
phonenumberId long
return IEnumerable

ReadPhoneNumbers() public method

public ReadPhoneNumbers ( long id ) : IEnumerable
id long
return IEnumerable

UpdateAddress() public method

public UpdateAddress ( long clientId, long addressId, ClientAddressPoco address ) : void
clientId long
addressId long
address ClientAddressPoco
return void

UpdateClient() public method

public UpdateClient ( ClientPoco client ) : void
client ClientPoco
return void

UpdatePhoneNumber() public method

public UpdatePhoneNumber ( long clientId, long PhoneNumberId, ClientPhoneNumberPoco phonenumber ) : void
clientId long
PhoneNumberId long
phonenumber ClientPhoneNumberPoco
return void

Property Details

_db protected_oe property

protected InvestorContext _db
return InvestorContext