C# Class Mhotivo.App_Data.Repositories.AcademicYearRepository

Inheritance: IAcademicYearRepository
Mostra file Open project: armejiaf/Mhotivo

Public Methods

Method Description
AcademicYearRepository ( MhotivoContext ctx ) : System
Create ( AcademicYear itemToCreate ) : AcademicYear
Delete ( long id ) : AcademicYear
Detach ( AcademicYear academicYear ) : void
Dispose ( ) : void
Filter ( bool>.Expression expression ) : IQueryable
First ( AcademicYear>.Expression query ) : AcademicYear
GetById ( long id ) : AcademicYear
Query ( AcademicYear>.Expression expression ) : IQueryable
SaveChanges ( ) : void
Update ( AcademicYear itemToUpdate ) : AcademicYear
Update ( AcademicYear itemToUpdate, bool updateCourse = true, bool updateGrade = true, bool updateTeacher = true ) : AcademicYear

Method Details

AcademicYearRepository() public method

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

Create() public method

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

Delete() public method

public Delete ( long id ) : AcademicYear
id long
return Mhotivo.Models.AcademicYear

Detach() public method

public Detach ( AcademicYear academicYear ) : void
academicYear Mhotivo.Models.AcademicYear
return void

Dispose() public method

public Dispose ( ) : void
return void

Filter() public method

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

First() public method

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

GetById() public method

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

Query() public method

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

SaveChanges() public method

public SaveChanges ( ) : void
return void

Update() public method

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

Update() public method

public Update ( AcademicYear itemToUpdate, bool updateCourse = true, bool updateGrade = true, bool updateTeacher = true ) : AcademicYear
itemToUpdate Mhotivo.Models.AcademicYear
updateCourse bool
updateGrade bool
updateTeacher bool
return Mhotivo.Models.AcademicYear