C# Class Mhotivo.Implement.Repositories.StudentRepository

Inheritance: IStudentRepository
Mostrar archivo Open project: armejiaf/Mhotivo

Public Methods

Method Description
Create ( Mhotivo.Data.Entities.Student itemToCreate ) : Mhotivo.Data.Entities.Student
Delete ( long id ) : Student
Filter ( bool>.Expression expression ) : IQueryable
First ( Student>.Expression query ) : Student
GeContext ( ) : MhotivoContext
GenerateStudentFromRegisterModel ( Student studentRegisterModel ) : Student
GetAllStudents ( ) : IEnumerable
GetById ( long id ) : Student
GetByIdNumber ( string idNumber ) : Student
GetStudentDisplayModelById ( long id ) : Student
GetStudentEditModelById ( long id ) : Student
Query ( Student>.Expression expression ) : IQueryable
SaveChanges ( ) : void
StudentRepository ( MhotivoContext ctx ) : System
Update ( Student itemToUpdate ) : Student
UpdateStudentFromStudentEditModel ( Student studentEditModel, Student student ) : Student

Method Details

Create() public method

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

Delete() public method

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

Filter() public method

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

First() public method

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

GeContext() public method

public GeContext ( ) : MhotivoContext
return MhotivoContext

GenerateStudentFromRegisterModel() public method

public GenerateStudentFromRegisterModel ( Student studentRegisterModel ) : Student
studentRegisterModel Student
return Student

GetAllStudents() public method

public GetAllStudents ( ) : IEnumerable
return IEnumerable

GetById() public method

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

GetByIdNumber() public method

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

GetStudentDisplayModelById() public method

public GetStudentDisplayModelById ( long id ) : Student
id long
return Student

GetStudentEditModelById() public method

public GetStudentEditModelById ( long id ) : Student
id long
return Student

Query() public method

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

SaveChanges() public method

public SaveChanges ( ) : void
return void

StudentRepository() public method

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

Update() public method

public Update ( Student itemToUpdate ) : Student
itemToUpdate Student
return Student

UpdateStudentFromStudentEditModel() public method

public UpdateStudentFromStudentEditModel ( Student studentEditModel, Student student ) : Student
studentEditModel Student
student Student
return Student