C# Class Mhotivo.Implement.Repositories.TeacherRepository

Inheritance: ITeacherRepository
Show file Open project: armejiaf/Mhotivo

Public Methods

Method Description
Create ( Mhotivo.Data.Entities.Teacher itemToCreate ) : Mhotivo.Data.Entities.Teacher
Delete ( long id ) : Mhotivo.Data.Entities.Teacher
ExistEmail ( string email ) : bool
ExistIdNumber ( string idNumber ) : bool
Filter ( bool>.Expression expression ) : IQueryable
First ( Teacher>.Expression query ) : Mhotivo.Data.Entities.Teacher
FirstOrDefault ( bool>.Expression query ) : Mhotivo.Data.Entities.Teacher
GenerateTeacherFromRegisterModel ( Mhotivo.Data.Entities.Teacher teacherRegisterModel ) : Mhotivo.Data.Entities.Teacher
GetAllTeachers ( ) : IEnumerable
GetById ( long id ) : Mhotivo.Data.Entities.Teacher
GetTeacherDisplayModelById ( long id ) : Mhotivo.Data.Entities.Teacher
GetTeacherEditModelById ( long id ) : Mhotivo.Data.Entities.Teacher
Query ( Teacher>.Expression expression ) : IQueryable
SaveChanges ( ) : void
TeacherRepository ( MhotivoContext ctx ) : System
Update ( Mhotivo.Data.Entities.Teacher itemToUpdate ) : Mhotivo.Data.Entities.Teacher
UpdateTeacherFromTeacherEditModel ( Mhotivo.Data.Entities.Teacher teacherEditModel, Mhotivo.Data.Entities.Teacher teacher ) : Mhotivo.Data.Entities.Teacher

Method Details

Create() public method

public Create ( Mhotivo.Data.Entities.Teacher itemToCreate ) : Mhotivo.Data.Entities.Teacher
itemToCreate Mhotivo.Data.Entities.Teacher
return Mhotivo.Data.Entities.Teacher

Delete() public method

public Delete ( long id ) : Mhotivo.Data.Entities.Teacher
id long
return Mhotivo.Data.Entities.Teacher

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 ( Teacher>.Expression query ) : Mhotivo.Data.Entities.Teacher
query Teacher>.Expression
return Mhotivo.Data.Entities.Teacher

FirstOrDefault() public method

public FirstOrDefault ( bool>.Expression query ) : Mhotivo.Data.Entities.Teacher
query bool>.Expression
return Mhotivo.Data.Entities.Teacher

GenerateTeacherFromRegisterModel() public method

public GenerateTeacherFromRegisterModel ( Mhotivo.Data.Entities.Teacher teacherRegisterModel ) : Mhotivo.Data.Entities.Teacher
teacherRegisterModel Mhotivo.Data.Entities.Teacher
return Mhotivo.Data.Entities.Teacher

GetAllTeachers() public method

public GetAllTeachers ( ) : IEnumerable
return IEnumerable

GetById() public method

public GetById ( long id ) : Mhotivo.Data.Entities.Teacher
id long
return Mhotivo.Data.Entities.Teacher

GetTeacherDisplayModelById() public method

public GetTeacherDisplayModelById ( long id ) : Mhotivo.Data.Entities.Teacher
id long
return Mhotivo.Data.Entities.Teacher

GetTeacherEditModelById() public method

public GetTeacherEditModelById ( long id ) : Mhotivo.Data.Entities.Teacher
id long
return Mhotivo.Data.Entities.Teacher

Query() public method

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

SaveChanges() public method

public SaveChanges ( ) : void
return void

TeacherRepository() public method

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

Update() public method

public Update ( Mhotivo.Data.Entities.Teacher itemToUpdate ) : Mhotivo.Data.Entities.Teacher
itemToUpdate Mhotivo.Data.Entities.Teacher
return Mhotivo.Data.Entities.Teacher

UpdateTeacherFromTeacherEditModel() public method

public UpdateTeacherFromTeacherEditModel ( Mhotivo.Data.Entities.Teacher teacherEditModel, Mhotivo.Data.Entities.Teacher teacher ) : Mhotivo.Data.Entities.Teacher
teacherEditModel Mhotivo.Data.Entities.Teacher
teacher Mhotivo.Data.Entities.Teacher
return Mhotivo.Data.Entities.Teacher