C# Class Mhotivo.Implement.Repositories.NotificationRepository

Inheritance: INotificationRepository
显示文件 Open project: armejiaf/Mhotivo

Public Methods

Method Description
Create ( Mhotivo.Data.Entities.Notification itemToCreate ) : Mhotivo.Data.Entities.Notification
Delete ( Mhotivo.Data.Entities.Notification itemToDelete ) : void
Filter ( bool>.Expression expression ) : IQueryable
First ( bool>.Expression query ) : Mhotivo.Data.Entities.Notification
GetAllNotifications ( ) : IQueryable
GetAreaNotifications ( int currentAcademicYear, long id ) : IQueryable
GetById ( long id ) : Mhotivo.Data.Entities.Notification
GetGeneralNotifications ( int currentAcademicYear ) : IQueryable
GetGradeNotifications ( int currentAcademicYear, long id ) : IQueryable
GetPersonalNotifications ( int currentAcademicYear, long id ) : IQueryable
NotificationRepository ( MhotivoContext ctx ) : System
Query ( Notification>.Expression expression ) : IQueryable
SaveChanges ( ) : void
Update ( Mhotivo.Data.Entities.Notification itemToUpdate ) : Mhotivo.Data.Entities.Notification
Where ( bool>.Expression expression ) : IQueryable

Method Details

Create() public method

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

Delete() public method

public Delete ( Mhotivo.Data.Entities.Notification itemToDelete ) : void
itemToDelete Mhotivo.Data.Entities.Notification
return void

Filter() public method

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

First() public method

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

GetAllNotifications() public method

public GetAllNotifications ( ) : IQueryable
return IQueryable

GetAreaNotifications() public method

public GetAreaNotifications ( int currentAcademicYear, long id ) : IQueryable
currentAcademicYear int
id long
return IQueryable

GetById() public method

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

GetGeneralNotifications() public method

public GetGeneralNotifications ( int currentAcademicYear ) : IQueryable
currentAcademicYear int
return IQueryable

GetGradeNotifications() public method

public GetGradeNotifications ( int currentAcademicYear, long id ) : IQueryable
currentAcademicYear int
id long
return IQueryable

GetPersonalNotifications() public method

public GetPersonalNotifications ( int currentAcademicYear, long id ) : IQueryable
currentAcademicYear int
id long
return IQueryable

NotificationRepository() public method

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

Query() public method

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

SaveChanges() public method

public SaveChanges ( ) : void
return void

Update() public method

public Update ( Mhotivo.Data.Entities.Notification itemToUpdate ) : Mhotivo.Data.Entities.Notification
itemToUpdate Mhotivo.Data.Entities.Notification
return Mhotivo.Data.Entities.Notification

Where() public method

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