C# Class Mhotivo.App_Data.Repositories.StudentRepository

Inheritance: IStudentRepository
显示文件 Open project: armejiaf/Mhotivo

Public Methods

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

Method Details

Create() public method

public Create ( Student itemToCreate ) : Student
itemToCreate Mhotivo.Models.Student
return Mhotivo.Models.Student

Delete() public method

public Delete ( long id ) : Student
id long
return Mhotivo.Models.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 Mhotivo.Models.Student

GenerateStudentFromRegisterModel() public method

public GenerateStudentFromRegisterModel ( StudentRegisterModel studentRegisterModel ) : Student
studentRegisterModel Mhotivo.Models.StudentRegisterModel
return Mhotivo.Models.Student

GetAllStudents() public method

public GetAllStudents ( ) : IEnumerable
return IEnumerable

GetById() public method

public GetById ( long id ) : Student
id long
return Mhotivo.Models.Student

GetStudentDisplayModelById() public method

public GetStudentDisplayModelById ( long id ) : DisplayStudentModel
id long
return Mhotivo.Models.DisplayStudentModel

GetStudentEditModelById() public method

public GetStudentEditModelById ( long id ) : StudentEditModel
id long
return Mhotivo.Models.StudentEditModel

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 Mhotivo.Models.Student
return Mhotivo.Models.Student

UpdateStudentFromStudentEditModel() public method

public UpdateStudentFromStudentEditModel ( StudentEditModel studentEditModel, Student student ) : Student
studentEditModel Mhotivo.Models.StudentEditModel
student Mhotivo.Models.Student
return Mhotivo.Models.Student