C# Класс Mhotivo.Implement.Repositories.AcademicYearRepository

Наследование: IAcademicYearRepository
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

AcademicYearRepository() публичный Метод

public AcademicYearRepository ( MhotivoContext ctx ) : System
ctx MhotivoContext
Результат System

Create() публичный Метод

public Create ( Mhotivo.Data.Entities.AcademicYear itemToCreate ) : Mhotivo.Data.Entities.AcademicYear
itemToCreate Mhotivo.Data.Entities.AcademicYear
Результат Mhotivo.Data.Entities.AcademicYear

CreateDefaultPensum() публичный Метод

public CreateDefaultPensum ( Mhotivo.Data.Entities.AcademicYear academicYear ) : void
academicYear Mhotivo.Data.Entities.AcademicYear
Результат void

Delete() публичный Метод

public Delete ( long id ) : Mhotivo.Data.Entities.AcademicYear
id long
Результат Mhotivo.Data.Entities.AcademicYear

Detach() публичный Метод

public Detach ( Mhotivo.Data.Entities.AcademicYear academicYear ) : void
academicYear Mhotivo.Data.Entities.AcademicYear
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

ExistAcademicYear() публичный Метод

public ExistAcademicYear ( int year, long grade, string section ) : bool
year int
grade long
section string
Результат bool

Filter() публичный Метод

public Filter ( bool>.Expression expression ) : IQueryable
expression bool>.Expression
Результат IQueryable

First() публичный Метод

public First ( AcademicYear>.Expression query ) : Mhotivo.Data.Entities.AcademicYear
query AcademicYear>.Expression
Результат Mhotivo.Data.Entities.AcademicYear

GeContext() публичный Метод

public GeContext ( ) : MhotivoContext
Результат MhotivoContext

GetAllAcademicYears() публичный Метод

public GetAllAcademicYears ( ) : IEnumerable
Результат IEnumerable

GetByFields() публичный Метод

public GetByFields ( int year, long grade, string section ) : Mhotivo.Data.Entities.AcademicYear
year int
grade long
section string
Результат Mhotivo.Data.Entities.AcademicYear

GetById() публичный Метод

public GetById ( long id ) : Mhotivo.Data.Entities.AcademicYear
id long
Результат Mhotivo.Data.Entities.AcademicYear

GetCurrentAcademicYear() публичный Метод

public GetCurrentAcademicYear ( ) : Mhotivo.Data.Entities.AcademicYear
Результат Mhotivo.Data.Entities.AcademicYear

GetDefaultPensum() публичный Метод

public GetDefaultPensum ( long grade ) : IEnumerable
grade long
Результат IEnumerable

Query() публичный Метод

public Query ( AcademicYear>.Expression expression ) : IQueryable
expression AcademicYear>.Expression
Результат IQueryable

SaveChanges() публичный Метод

public SaveChanges ( ) : void
Результат void

Update() публичный Метод

public Update ( Mhotivo.Data.Entities.AcademicYear itemToUpdate ) : Mhotivo.Data.Entities.AcademicYear
itemToUpdate Mhotivo.Data.Entities.AcademicYear
Результат Mhotivo.Data.Entities.AcademicYear

Update() публичный Метод

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
Результат Mhotivo.Data.Entities.AcademicYear