C# Class Mhotivo.Implement.Repositories.HomeworkRepository

Inheritance: IHomeworkRepository
Datei anzeigen Open project: armejiaf/Mhotivo

Public Methods

Method Description
Create ( Mhotivo.Data.Entities.Homework itemToCreate ) : Mhotivo.Data.Entities.Homework
Delete ( long id ) : Mhotivo.Data.Entities.Homework
Filter ( bool>.Expression expression ) : IQueryable
First ( Homework>.Expression query ) : Mhotivo.Data.Entities.Homework
GetAllHomeworks ( ) : IEnumerable
GetById ( long id ) : Mhotivo.Data.Entities.Homework
HomeworkRepository ( MhotivoContext ctx ) : System
Query ( Homework>.Expression expression ) : IQueryable
Update ( Mhotivo.Data.Entities.Homework itemToUpdate ) : Mhotivo.Data.Entities.Homework
UpdateHomeworkFromHomeworkEditModel ( Mhotivo.Data.Entities.Homework displayHomeworkModel, Mhotivo.Data.Entities.Homework homework ) : Mhotivo.Data.Entities.Homework

Method Details

Create() public method

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

Delete() public method

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

Filter() public method

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

First() public method

public First ( Homework>.Expression query ) : Mhotivo.Data.Entities.Homework
query Homework>.Expression
return Mhotivo.Data.Entities.Homework

GetAllHomeworks() public method

public GetAllHomeworks ( ) : IEnumerable
return IEnumerable

GetById() public method

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

HomeworkRepository() public method

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

Query() public method

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

Update() public method

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

UpdateHomeworkFromHomeworkEditModel() public method

public UpdateHomeworkFromHomeworkEditModel ( Mhotivo.Data.Entities.Homework displayHomeworkModel, Mhotivo.Data.Entities.Homework homework ) : Mhotivo.Data.Entities.Homework
displayHomeworkModel Mhotivo.Data.Entities.Homework
homework Mhotivo.Data.Entities.Homework
return Mhotivo.Data.Entities.Homework