C# Класс BinaryStudio.TaskManager.Logic.Core.ProjectRepository

The project repository.
Наследование: IProjectRepository
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Add() публичный Метод

The add.
public Add ( Project project ) : int
project BinaryStudio.TaskManager.Logic.Domain.Project /// The project. ///
Результат int

AddInvitation() публичный Метод

public AddInvitation ( Invitation invitation ) : void
invitation BinaryStudio.TaskManager.Logic.Domain.Invitation
Результат void

Delete() публичный Метод

The delete.
public Delete ( int projectId ) : void
projectId int /// The project id. ///
Результат void

DeleteInvitation() публичный Метод

public DeleteInvitation ( Invitation invitation ) : void
invitation BinaryStudio.TaskManager.Logic.Domain.Invitation
Результат void

GetAll() публичный Метод

The get all.
public GetAll ( ) : IEnumerable
Результат IEnumerable

GetAllInvitationsForUser() публичный Метод

public GetAllInvitationsForUser ( int userId ) : IEnumerable
userId int
Результат IEnumerable

GetAllInvitationsToProject() публичный Метод

public GetAllInvitationsToProject ( int projectId ) : IEnumerable
projectId int
Результат IEnumerable

GetAllProjectsForTheirCreator() публичный Метод

public GetAllProjectsForTheirCreator ( int userId ) : IEnumerable
userId int
Результат IEnumerable

GetAllProjectsForUser() публичный Метод

The get all projects for user.
public GetAllProjectsForUser ( int userId ) : IEnumerable
userId int /// The user id. ///
Результат IEnumerable

GetAllUsersInProject() публичный Метод

The get all users in project.
public GetAllUsersInProject ( int projectId ) : IEnumerable
projectId int /// The project id. ///
Результат IEnumerable

GetById() публичный Метод

The get by id.
public GetById ( int projectId ) : Project
projectId int /// The project id. ///
Результат BinaryStudio.TaskManager.Logic.Domain.Project

GetCreatorForProject() публичный Метод

public GetCreatorForProject ( int pojectId ) : User
pojectId int
Результат BinaryStudio.TaskManager.Logic.Domain.User

GetInvitationById() публичный Метод

public GetInvitationById ( int invitationId ) : Invitation
invitationId int
Результат BinaryStudio.TaskManager.Logic.Domain.Invitation

ProjectRepository() публичный Метод

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. ///
Результат System.Collections.Generic

Update() публичный Метод

The update.
public Update ( Project project ) : void
project BinaryStudio.TaskManager.Logic.Domain.Project /// The project. ///
Результат void

UpdateInvitation() публичный Метод

public UpdateInvitation ( Invitation invitation ) : void
invitation BinaryStudio.TaskManager.Logic.Domain.Invitation
Результат void