C# 클래스 Mhotivo.Implement.Repositories.TeacherRepository

상속: ITeacherRepository
파일 보기 프로젝트 열기: armejiaf/Mhotivo

공개 메소드들

메소드 설명
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

메소드 상세

Create() 공개 메소드

public Create ( Mhotivo.Data.Entities.Teacher itemToCreate ) : Mhotivo.Data.Entities.Teacher
itemToCreate Mhotivo.Data.Entities.Teacher
리턴 Mhotivo.Data.Entities.Teacher

Delete() 공개 메소드

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

ExistEmail() 공개 메소드

public ExistEmail ( string email ) : bool
email string
리턴 bool

ExistIdNumber() 공개 메소드

public ExistIdNumber ( string idNumber ) : bool
idNumber string
리턴 bool

Filter() 공개 메소드

public Filter ( bool>.Expression expression ) : IQueryable
expression bool>.Expression
리턴 IQueryable

First() 공개 메소드

public First ( Teacher>.Expression query ) : Mhotivo.Data.Entities.Teacher
query Teacher>.Expression
리턴 Mhotivo.Data.Entities.Teacher

FirstOrDefault() 공개 메소드

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

GenerateTeacherFromRegisterModel() 공개 메소드

public GenerateTeacherFromRegisterModel ( Mhotivo.Data.Entities.Teacher teacherRegisterModel ) : Mhotivo.Data.Entities.Teacher
teacherRegisterModel Mhotivo.Data.Entities.Teacher
리턴 Mhotivo.Data.Entities.Teacher

GetAllTeachers() 공개 메소드

public GetAllTeachers ( ) : IEnumerable
리턴 IEnumerable

GetById() 공개 메소드

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

GetTeacherDisplayModelById() 공개 메소드

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

GetTeacherEditModelById() 공개 메소드

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

Query() 공개 메소드

public Query ( Teacher>.Expression expression ) : IQueryable
expression Teacher>.Expression
리턴 IQueryable

SaveChanges() 공개 메소드

public SaveChanges ( ) : void
리턴 void

TeacherRepository() 공개 메소드

public TeacherRepository ( MhotivoContext ctx ) : System
ctx MhotivoContext
리턴 System

Update() 공개 메소드

public Update ( Mhotivo.Data.Entities.Teacher itemToUpdate ) : Mhotivo.Data.Entities.Teacher
itemToUpdate Mhotivo.Data.Entities.Teacher
리턴 Mhotivo.Data.Entities.Teacher

UpdateTeacherFromTeacherEditModel() 공개 메소드

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
리턴 Mhotivo.Data.Entities.Teacher