C# Class Mhotivo.App_Data.Repositories.PensumRepository

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

Public Methods

Method Description
Create ( Pensum itemToCreate ) : Pensum
Delete ( long id ) : Pensum
Detach ( Pensum pensum ) : void
Dispose ( ) : void
Filter ( bool>.Expression expression ) : IQueryable
First ( Pensum>.Expression query ) : Pensum
GetAllPesums ( ) : IEnumerable
GetById ( long id ) : Pensum
PensumRepository ( MhotivoContext ctx ) : System
Query ( Pensum>.Expression expression ) : IQueryable
SaveChanges ( ) : void
Update ( Pensum itemToUpdate, bool updateCourse = true, bool updateGrade = true ) : Pensum
UpdateNew ( Pensum itemToUpdate ) : Pensum

Method Details

Create() public method

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

Delete() public method

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

Detach() public method

public Detach ( Pensum pensum ) : void
pensum Mhotivo.Models.Pensum
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 ( Pensum>.Expression query ) : Pensum
query Pensum>.Expression
return Mhotivo.Models.Pensum

GetAllPesums() public method

public GetAllPesums ( ) : IEnumerable
return IEnumerable

GetById() public method

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

PensumRepository() public method

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

Query() public method

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

SaveChanges() public method

public SaveChanges ( ) : void
return void

Update() public method

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

UpdateNew() public method

public UpdateNew ( Pensum itemToUpdate ) : Pensum
itemToUpdate Mhotivo.Models.Pensum
return Mhotivo.Models.Pensum