C# Class Mhotivo.Implement.Repositories.AcademicYearRepository

Inheritance: IAcademicYearRepository
ファイルを表示 Open project: armejiaf/Mhotivo

Public Methods

Method Description
AcademicYearRepository ( MhotivoContext ctx ) : System
Create ( Mhotivo.Data.Entities.AcademicYear itemToCreate ) : Mhotivo.Data.Entities.AcademicYear
CreateDefaultPensum ( Mhotivo.Data.Entities.AcademicYear academicYear ) : void
Delete ( long id ) : Mhotivo.Data.Entities.AcademicYear
Detach ( Mhotivo.Data.Entities.AcademicYear academicYear ) : void
Dispose ( ) : void
ExistAcademicYear ( int year, long grade, string section ) : bool
Filter ( bool>.Expression expression ) : IQueryable
First ( AcademicYear>.Expression query ) : Mhotivo.Data.Entities.AcademicYear
GeContext ( ) : MhotivoContext
GetAllAcademicYears ( ) : IEnumerable
GetByFields ( int year, long grade, string section ) : Mhotivo.Data.Entities.AcademicYear
GetById ( long id ) : Mhotivo.Data.Entities.AcademicYear
GetCurrentAcademicYear ( ) : Mhotivo.Data.Entities.AcademicYear
GetDefaultPensum ( long grade ) : IEnumerable
Query ( AcademicYear>.Expression expression ) : IQueryable
SaveChanges ( ) : void
Update ( Mhotivo.Data.Entities.AcademicYear itemToUpdate ) : Mhotivo.Data.Entities.AcademicYear
Update ( Mhotivo.Data.Entities.AcademicYear itemToUpdate, bool updateCourse = true, bool updateGrade = true, bool updateTeacher = true ) : Mhotivo.Data.Entities.AcademicYear

Method Details

AcademicYearRepository() public method

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

Create() public method

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

CreateDefaultPensum() public method

public CreateDefaultPensum ( Mhotivo.Data.Entities.AcademicYear academicYear ) : void
academicYear Mhotivo.Data.Entities.AcademicYear
return void

Delete() public method

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

Detach() public method

public Detach ( Mhotivo.Data.Entities.AcademicYear academicYear ) : void
academicYear Mhotivo.Data.Entities.AcademicYear
return void

Dispose() public method

public Dispose ( ) : void
return void

ExistAcademicYear() public method

public ExistAcademicYear ( int year, long grade, string section ) : bool
year int
grade long
section string
return bool

Filter() public method

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

First() public method

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

GeContext() public method

public GeContext ( ) : MhotivoContext
return MhotivoContext

GetAllAcademicYears() public method

public GetAllAcademicYears ( ) : IEnumerable
return IEnumerable

GetByFields() public method

public GetByFields ( int year, long grade, string section ) : Mhotivo.Data.Entities.AcademicYear
year int
grade long
section string
return Mhotivo.Data.Entities.AcademicYear

GetById() public method

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

GetCurrentAcademicYear() public method

public GetCurrentAcademicYear ( ) : Mhotivo.Data.Entities.AcademicYear
return Mhotivo.Data.Entities.AcademicYear

GetDefaultPensum() public method

public GetDefaultPensum ( long grade ) : IEnumerable
grade long
return IEnumerable

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 ( Mhotivo.Data.Entities.AcademicYear itemToUpdate ) : Mhotivo.Data.Entities.AcademicYear
itemToUpdate Mhotivo.Data.Entities.AcademicYear
return Mhotivo.Data.Entities.AcademicYear

Update() public method

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