C# Class Mhotivo.App_Data.Repositories.BenefactorRepository

Inheritance: IBenefactorRepository
显示文件 Open project: armejiaf/Mhotivo

Public Methods

Method Description
BenefactorRepository ( MhotivoContext ctx ) : System
Create ( Benefactor itemToCreate ) : Benefactor
Delete ( long id ) : Benefactor
Filter ( bool>.Expression expression ) : IQueryable
First ( Benefactor>.Expression query ) : Benefactor
GenerateBenefactorFromRegisterModel ( BenefactorRegisterModel benefactorRegisterModel ) : Benefactor
GetBenefactorDisplayModelById ( long id ) : DisplayBenefactorModel
GetBenefactorEditModelById ( long id ) : BenefactorEditModel
GetById ( long id ) : Benefactor
GettAllBenefactors ( ) : IEnumerable
Query ( Benefactor>.Expression expression ) : IQueryable
SaveChanges ( ) : void
Update ( Benefactor itemToUpdate ) : Benefactor
UpdateBenefactorFromBenefactorEditModel ( BenefactorEditModel editModel, Benefactor benefactorModel ) : Benefactor

Private Methods

Method Description
Detach ( Benefactor benefactor ) : void

Method Details

BenefactorRepository() public method

public BenefactorRepository ( MhotivoContext ctx ) : System
ctx MhotivoContext
return System

Create() public method

public Create ( Benefactor itemToCreate ) : Benefactor
itemToCreate Mhotivo.Models.Benefactor
return Mhotivo.Models.Benefactor

Delete() public method

public Delete ( long id ) : Benefactor
id long
return Mhotivo.Models.Benefactor

Filter() public method

public Filter ( bool>.Expression expression ) : IQueryable
expression bool>.Expression
return IQueryable

First() public method

public First ( Benefactor>.Expression query ) : Benefactor
query Benefactor>.Expression
return Mhotivo.Models.Benefactor

GenerateBenefactorFromRegisterModel() public method

public GenerateBenefactorFromRegisterModel ( BenefactorRegisterModel benefactorRegisterModel ) : Benefactor
benefactorRegisterModel BenefactorRegisterModel
return Mhotivo.Models.Benefactor

GetBenefactorDisplayModelById() public method

public GetBenefactorDisplayModelById ( long id ) : DisplayBenefactorModel
id long
return DisplayBenefactorModel

GetBenefactorEditModelById() public method

public GetBenefactorEditModelById ( long id ) : BenefactorEditModel
id long
return BenefactorEditModel

GetById() public method

public GetById ( long id ) : Benefactor
id long
return Mhotivo.Models.Benefactor

GettAllBenefactors() public method

public GettAllBenefactors ( ) : IEnumerable
return IEnumerable

Query() public method

public Query ( Benefactor>.Expression expression ) : IQueryable
expression Benefactor>.Expression
return IQueryable

SaveChanges() public method

public SaveChanges ( ) : void
return void

Update() public method

public Update ( Benefactor itemToUpdate ) : Benefactor
itemToUpdate Mhotivo.Models.Benefactor
return Mhotivo.Models.Benefactor

UpdateBenefactorFromBenefactorEditModel() public method

public UpdateBenefactorFromBenefactorEditModel ( BenefactorEditModel editModel, Benefactor benefactorModel ) : Benefactor
editModel BenefactorEditModel
benefactorModel Mhotivo.Models.Benefactor
return Mhotivo.Models.Benefactor