C# Class BinaryStudio.TaskManager.Logic.Core.ProjectRepository

The project repository.
Inheritance: IProjectRepository
Afficher le fichier Open project: dv00d00/BinaryStudio.TaskManager

Méthodes publiques

Méthode Description
Add ( Project project ) : int

The add.

AddInvitation ( Invitation invitation ) : void
Delete ( int projectId ) : void

The delete.

DeleteInvitation ( Invitation invitation ) : void
GetAll ( ) : IEnumerable

The get all.

GetAllInvitationsForUser ( int userId ) : IEnumerable
GetAllInvitationsToProject ( int projectId ) : IEnumerable
GetAllProjectsForTheirCreator ( int userId ) : IEnumerable
GetAllProjectsForUser ( int userId ) : IEnumerable

The get all projects for user.

GetAllUsersInProject ( int projectId ) : IEnumerable

The get all users in project.

GetById ( int projectId ) : Project

The get by id.

GetCreatorForProject ( int pojectId ) : User
GetInvitationById ( int invitationId ) : Invitation
ProjectRepository ( DataBaseContext dataBaseContext ) : System.Collections.Generic

Initializes a new instance of the ProjectRepository class.

Update ( Project project ) : void

The update.

UpdateInvitation ( Invitation invitation ) : void

Method Details

Add() public méthode

The add.
public Add ( Project project ) : int
project BinaryStudio.TaskManager.Logic.Domain.Project /// The project. ///
Résultat int

AddInvitation() public méthode

public AddInvitation ( Invitation invitation ) : void
invitation BinaryStudio.TaskManager.Logic.Domain.Invitation
Résultat void

Delete() public méthode

The delete.
public Delete ( int projectId ) : void
projectId int /// The project id. ///
Résultat void

DeleteInvitation() public méthode

public DeleteInvitation ( Invitation invitation ) : void
invitation BinaryStudio.TaskManager.Logic.Domain.Invitation
Résultat void

GetAll() public méthode

The get all.
public GetAll ( ) : IEnumerable
Résultat IEnumerable

GetAllInvitationsForUser() public méthode

public GetAllInvitationsForUser ( int userId ) : IEnumerable
userId int
Résultat IEnumerable

GetAllInvitationsToProject() public méthode

public GetAllInvitationsToProject ( int projectId ) : IEnumerable
projectId int
Résultat IEnumerable

GetAllProjectsForTheirCreator() public méthode

public GetAllProjectsForTheirCreator ( int userId ) : IEnumerable
userId int
Résultat IEnumerable

GetAllProjectsForUser() public méthode

The get all projects for user.
public GetAllProjectsForUser ( int userId ) : IEnumerable
userId int /// The user id. ///
Résultat IEnumerable

GetAllUsersInProject() public méthode

The get all users in project.
public GetAllUsersInProject ( int projectId ) : IEnumerable
projectId int /// The project id. ///
Résultat IEnumerable

GetById() public méthode

The get by id.
public GetById ( int projectId ) : Project
projectId int /// The project id. ///
Résultat BinaryStudio.TaskManager.Logic.Domain.Project

GetCreatorForProject() public méthode

public GetCreatorForProject ( int pojectId ) : User
pojectId int
Résultat BinaryStudio.TaskManager.Logic.Domain.User

GetInvitationById() public méthode

public GetInvitationById ( int invitationId ) : Invitation
invitationId int
Résultat BinaryStudio.TaskManager.Logic.Domain.Invitation

ProjectRepository() public méthode

Initializes a new instance of the ProjectRepository class.
public ProjectRepository ( DataBaseContext dataBaseContext ) : System.Collections.Generic
dataBaseContext BinaryStudio.TaskManager.Logic.Domain.DataBaseContext /// The data base context. ///
Résultat System.Collections.Generic

Update() public méthode

The update.
public Update ( Project project ) : void
project BinaryStudio.TaskManager.Logic.Domain.Project /// The project. ///
Résultat void

UpdateInvitation() public méthode

public UpdateInvitation ( Invitation invitation ) : void
invitation BinaryStudio.TaskManager.Logic.Domain.Invitation
Résultat void