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

The user repository.
Inheritance: IUserRepository
Afficher le fichier Open project: dv00d00/BinaryStudio.TaskManager Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

DeleteUser() public méthode

The delete user.
public DeleteUser ( int userId ) : void
userId int /// The user id. ///
Résultat void

GetAll() public méthode

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

GetById() public méthode

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

GetByName() public méthode

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

GetRoleByName() public méthode

The get role by name.
public GetRoleByName ( string userName ) : string
userName string /// The user name. ///
Résultat string

GetUserEmailById() public méthode

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

GetUserImageById() public méthode

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

UpdateUser() public méthode

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

UserRepository() public méthode

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