C# Class WebApiSeed.Data.Repositories.UserRepository

Inheritance: IUserRepository
ファイルを表示 Open project: MakingSense/webapi-seed

Public Methods

Method Description
DeleteUser ( int id ) : void
Dispose ( ) : void
FindUserById ( int id ) : User
FindUserByToken ( string token ) : User
FindUserByUserName ( string userName ) : User
GetAllUsers ( ) : IList
SaveOrUpdateUser ( User user ) : void
UserRepository ( IDbContext context, ILoggingHelper loggingHelper ) : System

Method Details

DeleteUser() public method

public DeleteUser ( int id ) : void
id int
return void

Dispose() public method

public Dispose ( ) : void
return void

FindUserById() public method

public FindUserById ( int id ) : User
id int
return WebApiSeed.Data.Domain.User

FindUserByToken() public method

public FindUserByToken ( string token ) : User
token string
return WebApiSeed.Data.Domain.User

FindUserByUserName() public method

public FindUserByUserName ( string userName ) : User
userName string
return WebApiSeed.Data.Domain.User

GetAllUsers() public method

public GetAllUsers ( ) : IList
return IList

SaveOrUpdateUser() public method

public SaveOrUpdateUser ( User user ) : void
user WebApiSeed.Data.Domain.User
return void

UserRepository() public method

public UserRepository ( IDbContext context, ILoggingHelper loggingHelper ) : System
context IDbContext
loggingHelper ILoggingHelper
return System