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

The project repository.
Inheritance: IProjectRepository
ファイルを表示 Open project: dv00d00/BinaryStudio.TaskManager

Public Methods

Method 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 method

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

AddInvitation() public method

public AddInvitation ( Invitation invitation ) : void
invitation BinaryStudio.TaskManager.Logic.Domain.Invitation
return void

Delete() public method

The delete.
public Delete ( int projectId ) : void
projectId int /// The project id. ///
return void

DeleteInvitation() public method

public DeleteInvitation ( Invitation invitation ) : void
invitation BinaryStudio.TaskManager.Logic.Domain.Invitation
return void

GetAll() public method

The get all.
public GetAll ( ) : IEnumerable
return IEnumerable

GetAllInvitationsForUser() public method

public GetAllInvitationsForUser ( int userId ) : IEnumerable
userId int
return IEnumerable

GetAllInvitationsToProject() public method

public GetAllInvitationsToProject ( int projectId ) : IEnumerable
projectId int
return IEnumerable

GetAllProjectsForTheirCreator() public method

public GetAllProjectsForTheirCreator ( int userId ) : IEnumerable
userId int
return IEnumerable

GetAllProjectsForUser() public method

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

GetAllUsersInProject() public method

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

GetById() public method

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

GetCreatorForProject() public method

public GetCreatorForProject ( int pojectId ) : User
pojectId int
return BinaryStudio.TaskManager.Logic.Domain.User

GetInvitationById() public method

public GetInvitationById ( int invitationId ) : Invitation
invitationId int
return BinaryStudio.TaskManager.Logic.Domain.Invitation

ProjectRepository() public method

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. ///
return System.Collections.Generic

Update() public method

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

UpdateInvitation() public method

public UpdateInvitation ( Invitation invitation ) : void
invitation BinaryStudio.TaskManager.Logic.Domain.Invitation
return void