C# Class EasyAuth.Storage.EntityUserStore

Stores users in a database using Entity.
Inheritance: IUserStore
Afficher le fichier Open project: adamkdean/EasyAuth

Méthodes publiques

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

Méthodes protégées

Méthode Description
CopyProperties ( object dest, object src ) : void

Private Methods

Méthode Description
EntityUserStore ( ) : System
Reset ( ) : void

Method Details

AddUser() public méthode

public AddUser ( string username, string password ) : void
username string
password string
Résultat void

CopyProperties() protected méthode

protected CopyProperties ( object dest, object src ) : void
dest object
src object
Résultat void

DeleteUserById() public méthode

public DeleteUserById ( int id ) : void
id int
Résultat void

GetAllUsers() public méthode

public GetAllUsers ( ) : List
Résultat List

GetUserById() public méthode

public GetUserById ( int id ) : User
id int
Résultat User

GetUserByUsername() public méthode

public GetUserByUsername ( string username ) : User
username string
Résultat User

UpdateUserById() public méthode

public UpdateUserById ( int id, User newUser ) : void
id int
newUser User
Résultat void

UserExistsById() public méthode

public UserExistsById ( int id ) : bool
id int
Résultat bool

UserExistsByUsername() public méthode

public UserExistsByUsername ( string username ) : bool
username string
Résultat bool