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

The user repository.
Inheritance: IUserRepository
Datei anzeigen Open project: dv00d00/BinaryStudio.TaskManager Class Usage Examples

Public Methods

Method Description
CreateUser ( User user ) : void

The create new user.

DeleteUser ( int userId ) : void

The delete user.

GetAll ( ) : IEnumerable

The get all.

GetById ( int userId ) : User

The get by id.

GetByName ( string userName ) : User

The get by name.

GetRoleByName ( string userName ) : string

The get role by name.

GetUserEmailById ( int userId ) : string

The get user email by id.

GetUserImageById ( int userId ) : byte[]

The get user image by id.

UpdateUser ( User user ) : void

The update user.

UserRepository ( DataBaseContext dataBaseContext ) : System

Initializes a new instance of the UserRepository class.

Method Details

CreateUser() public method

The create new user.
public CreateUser ( User user ) : void
user BinaryStudio.TaskManager.Logic.Domain.User /// The user. ///
return void

DeleteUser() public method

The delete user.
public DeleteUser ( int userId ) : void
userId int /// The user id. ///
return void

GetAll() public method

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

GetById() public method

The get by id.
public GetById ( int userId ) : User
userId int /// The user id. ///
return BinaryStudio.TaskManager.Logic.Domain.User

GetByName() public method

The get by name.
public GetByName ( string userName ) : User
userName string /// The user name. ///
return BinaryStudio.TaskManager.Logic.Domain.User

GetRoleByName() public method

The get role by name.
public GetRoleByName ( string userName ) : string
userName string /// The user name. ///
return string

GetUserEmailById() public method

The get user email by id.
public GetUserEmailById ( int userId ) : string
userId int /// The user id. ///
return string

GetUserImageById() public method

The get user image by id.
public GetUserImageById ( int userId ) : byte[]
userId int /// The user id. ///
return byte[]

UpdateUser() public method

The update user.
public UpdateUser ( User user ) : void
user BinaryStudio.TaskManager.Logic.Domain.User /// The user, which will be updated ///
return void

UserRepository() public method

Initializes a new instance of the UserRepository class.
public UserRepository ( DataBaseContext dataBaseContext ) : System
dataBaseContext BinaryStudio.TaskManager.Logic.Domain.DataBaseContext /// The data base context. ///
return System