C# Class Mhotivo.App_Data.Repositories.ParentRepository

Inheritance: IParentRepository
Show file Open project: armejiaf/Mhotivo

Public Methods

Method Description
Create ( Parent itemToCreate ) : Parent
Delete ( long id ) : Parent
Filter ( bool>.Expression expression ) : IQueryable
First ( Parent>.Expression query ) : Parent
GenerateParentFromRegisterModel ( ParentRegisterModel parentRegisterModel ) : Parent
GetAllParents ( ) : IEnumerable
GetById ( long id ) : Parent
GetParentDisplayModelById ( long id ) : DisplayParentModel
GetParentEditModelById ( long id ) : ParentEditModel
ParentRepository ( MhotivoContext ctx ) : System
Query ( Parent>.Expression expression ) : IQueryable
SaveChanges ( ) : void
Update ( Parent itemToUpdate ) : Parent
UpdateParentFromParentEditModel ( ParentEditModel parentEditModel, Parent parent ) : Parent

Private Methods

Method Description
Detach ( Parent parent ) : void

Method Details

Create() public method

public Create ( Parent itemToCreate ) : Parent
itemToCreate Parent
return Parent

Delete() public method

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

Filter() public method

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

First() public method

public First ( Parent>.Expression query ) : Parent
query Parent>.Expression
return Parent

GenerateParentFromRegisterModel() public method

public GenerateParentFromRegisterModel ( ParentRegisterModel parentRegisterModel ) : Parent
parentRegisterModel Mhotivo.Models.ParentRegisterModel
return Parent

GetAllParents() public method

public GetAllParents ( ) : IEnumerable
return IEnumerable

GetById() public method

public GetById ( long id ) : Parent
id long
return Parent

GetParentDisplayModelById() public method

public GetParentDisplayModelById ( long id ) : DisplayParentModel
id long
return Mhotivo.Models.DisplayParentModel

GetParentEditModelById() public method

public GetParentEditModelById ( long id ) : ParentEditModel
id long
return Mhotivo.Models.ParentEditModel

ParentRepository() public method

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

Query() public method

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

SaveChanges() public method

public SaveChanges ( ) : void
return void

Update() public method

public Update ( Parent itemToUpdate ) : Parent
itemToUpdate Parent
return Parent

UpdateParentFromParentEditModel() public method

public UpdateParentFromParentEditModel ( ParentEditModel parentEditModel, Parent parent ) : Parent
parentEditModel Mhotivo.Models.ParentEditModel
parent Parent
return Parent