C# Class EasyAuth.Storage.EntityUserStore

Stores users in a database using Entity.
Inheritance: IUserStore
Mostrar archivo Open project: adamkdean/EasyAuth

Public Methods

Method Description
AddUser ( string username, string password ) : void
DeleteUserById ( int id ) : void
GetAllUsers ( ) : List
GetUserById ( int id ) : User
GetUserByUsername ( string username ) : User
UpdateUserById ( int id, User newUser ) : void
UserExistsById ( int id ) : bool
UserExistsByUsername ( string username ) : bool

Protected Methods

Method Description
CopyProperties ( object dest, object src ) : void

Private Methods

Method Description
EntityUserStore ( ) : System
Reset ( ) : void

Method Details

AddUser() public method

public AddUser ( string username, string password ) : void
username string
password string
return void

CopyProperties() protected method

protected CopyProperties ( object dest, object src ) : void
dest object
src object
return void

DeleteUserById() public method

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

GetAllUsers() public method

public GetAllUsers ( ) : List
return List

GetUserById() public method

public GetUserById ( int id ) : User
id int
return User

GetUserByUsername() public method

public GetUserByUsername ( string username ) : User
username string
return User

UpdateUserById() public method

public UpdateUserById ( int id, User newUser ) : void
id int
newUser User
return void

UserExistsById() public method

public UserExistsById ( int id ) : bool
id int
return bool

UserExistsByUsername() public method

public UserExistsByUsername ( string username ) : bool
username string
return bool