C# Class Mhotivo.Implement.Repositories.PensumRepository

Inheritance: IPensumRepository
Show file Open project: armejiaf/Mhotivo

Public Methods

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

Method Details

Create() public method

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

Delete() public method

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

Detach() public method

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

GetAllPesums() public method

public GetAllPesums ( ) : IEnumerable
return IEnumerable

GetById() public method

public GetById ( long id ) : Mhotivo.Data.Entities.Pensum
id long
return Mhotivo.Data.Entities.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 ( Mhotivo.Data.Entities.Pensum itemToUpdate, bool updateCourse = true, bool updateGrade = true ) : Mhotivo.Data.Entities.Pensum
itemToUpdate Mhotivo.Data.Entities.Pensum
updateCourse bool
updateGrade bool
return Mhotivo.Data.Entities.Pensum

UpdateNew() public method

public UpdateNew ( Mhotivo.Data.Entities.Pensum itemToUpdate ) : Mhotivo.Data.Entities.Pensum
itemToUpdate Mhotivo.Data.Entities.Pensum
return Mhotivo.Data.Entities.Pensum