C# Class Investor.Common.Service.Investment.Data.InvestmentRepository

Inheritance: IInvestmentRepository
显示文件 Open project: johnhinz/Investor

Protected Properties

Property Type Description
_db Investor.Common.Shared.EntityFramework.InvestorContext

Public Methods

Method Description
Create ( InvestmentPoco investment ) : void
CreateInvestmentType ( InvestmentTypePoco investmenttype ) : void
Delete ( long id ) : void
DeleteInvestmentType ( long id ) : void
InvestmentRepository ( ) : Investor.Common.Shared.EntityFramework
Read ( long id ) : InvestmentPoco
ReadByMatureDate ( System.DateTime maturedate, int skip, int take ) : IEnumerable
ReadClient ( long id ) : IEnumerable
ReadInvestmentType ( long id ) : InvestmentTypePoco
Update ( long id, InvestmentPoco investment ) : bool
UpdateInvestmentType ( long id, InvestmentTypePoco investmenttype ) : bool

Method Details

Create() public method

public Create ( InvestmentPoco investment ) : void
investment Investor.Common.Shared.Pocos.InvestmentPoco
return void

CreateInvestmentType() public method

public CreateInvestmentType ( InvestmentTypePoco investmenttype ) : void
investmenttype Investor.Common.Shared.Pocos.InvestmentTypePoco
return void

Delete() public method

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

DeleteInvestmentType() public method

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

InvestmentRepository() public method

public InvestmentRepository ( ) : Investor.Common.Shared.EntityFramework
return Investor.Common.Shared.EntityFramework

Read() public method

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

ReadByMatureDate() public method

public ReadByMatureDate ( System.DateTime maturedate, int skip, int take ) : IEnumerable
maturedate System.DateTime
skip int
take int
return IEnumerable

ReadClient() public method

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

ReadInvestmentType() public method

public ReadInvestmentType ( long id ) : InvestmentTypePoco
id long
return Investor.Common.Shared.Pocos.InvestmentTypePoco

Update() public method

public Update ( long id, InvestmentPoco investment ) : bool
id long
investment Investor.Common.Shared.Pocos.InvestmentPoco
return bool

UpdateInvestmentType() public method

public UpdateInvestmentType ( long id, InvestmentTypePoco investmenttype ) : bool
id long
investmenttype Investor.Common.Shared.Pocos.InvestmentTypePoco
return bool

Property Details

_db protected_oe property

protected InvestorContext,Investor.Common.Shared.EntityFramework _db
return Investor.Common.Shared.EntityFramework.InvestorContext