C# Class Mhotivo.App_Data.Repositories.EnrollRepository

Inheritance: IEnrollRepository
Datei anzeigen Open project: armejiaf/Mhotivo

Public Methods

Method Description
Create ( Enroll itemToCreate ) : Enroll
Delete ( long id ) : Enroll
Detach ( Enroll enroll ) : void
EnrollRepository ( MhotivoContext ctx ) : System
Filter ( bool>.Expression expression ) : IQueryable
First ( Enroll>.Expression query ) : Enroll
GetById ( long id ) : Enroll
Query ( Enroll>.Expression expression ) : IQueryable
SaveChanges ( ) : void
Update ( Enroll itemToUpdate ) : Enroll
Update ( Enroll itemToUpdate, bool academicYear, bool student ) : Enroll

Method Details

Create() public method

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

Delete() public method

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

Detach() public method

public Detach ( Enroll enroll ) : void
enroll Mhotivo.Models.Enroll
return void

EnrollRepository() public method

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

Filter() public method

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

First() public method

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

GetById() public method

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

Query() public method

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

SaveChanges() public method

public SaveChanges ( ) : void
return void

Update() public method

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

Update() public method

public Update ( Enroll itemToUpdate, bool academicYear, bool student ) : Enroll
itemToUpdate Mhotivo.Models.Enroll
academicYear bool
student bool
return Mhotivo.Models.Enroll