C# Class Mhotivo.Implement.Repositories.ParentRepository

Inheritance: IParentRepository
Mostrar archivo Open project: armejiaf/Mhotivo

Public Methods

Method Description
Create ( Parent itemToCreate ) : Parent
Delete ( long id ) : Parent
ExistEmail ( string email ) : bool
ExistIdNumber ( string idNumber ) : bool
Filter ( bool>.Expression expression ) : IQueryable
First ( Parent>.Expression query ) : Parent
GeContext ( ) : MhotivoContext
GenerateParentFromRegisterModel ( Parent parentRegisterModel ) : Parent
GetAllParents ( ) : IEnumerable
GetById ( long id ) : Parent
GetByIdNumber ( string idNumber ) : Parent
GetParentDisplayModelById ( long id ) : Parent
GetParentEditModelById ( long id ) : Parent
ParentRepository ( MhotivoContext ctx ) : System
Query ( Parent>.Expression expression ) : IQueryable
SaveChanges ( ) : void
Update ( Parent itemToUpdate ) : Parent
UpdateParentFromParentEditModel ( Parent 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

ExistEmail() public method

public ExistEmail ( string email ) : bool
email string
return bool

ExistIdNumber() public method

public ExistIdNumber ( string idNumber ) : bool
idNumber string
return bool

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

GeContext() public method

public GeContext ( ) : MhotivoContext
return MhotivoContext

GenerateParentFromRegisterModel() public method

public GenerateParentFromRegisterModel ( Parent parentRegisterModel ) : Parent
parentRegisterModel Parent
return Parent

GetAllParents() public method

public GetAllParents ( ) : IEnumerable
return IEnumerable

GetById() public method

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

GetByIdNumber() public method

public GetByIdNumber ( string idNumber ) : Parent
idNumber string
return Parent

GetParentDisplayModelById() public method

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

GetParentEditModelById() public method

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

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 ( Parent parentEditModel, Parent parent ) : Parent
parentEditModel Parent
parent Parent
return Parent