C# Class SagaDB.MSSQLUserDB

Inheritance: UserDB
Exibir arquivo Open project: Willyham/SagaRO2

Public Methods

Method Description
CheckPassword ( string user, string password ) : bool
Connect ( ) : bool
GetAccountID ( string user ) : int
GetUser ( User user ) : User
GetUser ( string username ) : User
MSSQLUserDB ( string host, int port, string database, string user, string pass ) : System
WriteUser ( User user ) : void
isConnected ( ) : bool

Private Methods

Method Description
byte2Gender ( byte b ) : GenderType

Method Details

CheckPassword() public method

public CheckPassword ( string user, string password ) : bool
user string
password string
return bool

Connect() public method

public Connect ( ) : bool
return bool

GetAccountID() public method

public GetAccountID ( string user ) : int
user string
return int

GetUser() public method

public GetUser ( User user ) : User
user User
return User

GetUser() public method

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

MSSQLUserDB() public method

public MSSQLUserDB ( string host, int port, string database, string user, string pass ) : System
host string
port int
database string
user string
pass string
return System

WriteUser() public method

public WriteUser ( User user ) : void
user User
return void

isConnected() public method

public isConnected ( ) : bool
return bool