C# 클래스 BinaryStudio.TaskManager.Logic.Core.UserRepository

The user repository.
상속: IUserRepository
파일 보기 프로젝트 열기: dv00d00/BinaryStudio.TaskManager 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

CreateUser() 공개 메소드

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

DeleteUser() 공개 메소드

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

GetAll() 공개 메소드

The get all.
public GetAll ( ) : IEnumerable
리턴 IEnumerable

GetById() 공개 메소드

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

GetByName() 공개 메소드

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

GetRoleByName() 공개 메소드

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

GetUserEmailById() 공개 메소드

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

GetUserImageById() 공개 메소드

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

UpdateUser() 공개 메소드

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

UserRepository() 공개 메소드

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