C# Class Mhotivo.App_Data.Repositories.GradeRepository

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

Public Methods

Method Description
Create ( Grade itemToCreate ) : Grade
Delete ( Grade itemToDelete ) : void
Filter ( bool>.Expression expression ) : IQueryable
First ( bool>.Expression query ) : Grade
GetById ( long id ) : Grade
GradeRepository ( MhotivoContext ctx ) : System
Query ( Grade>.Expression expression ) : IQueryable
SaveChanges ( ) : void
Update ( Grade itemToUpdate ) : Grade

Method Details

Create() public method

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

Delete() public method

public Delete ( Grade itemToDelete ) : void
itemToDelete Mhotivo.Models.Grade
return void

Filter() public method

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

First() public method

public First ( bool>.Expression query ) : Grade
query bool>.Expression
return Mhotivo.Models.Grade

GetById() public method

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

GradeRepository() public method

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

Query() public method

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

SaveChanges() public method

public SaveChanges ( ) : void
return void

Update() public method

public Update ( Grade itemToUpdate ) : Grade
itemToUpdate Mhotivo.Models.Grade
return Mhotivo.Models.Grade