C# Class SagaDB.MYSQLUserDB

Inheritance: UserDB
Show file 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
MYSQLUserDB ( string host, int port, string database, string user, string pass ) : System
SQLExecuteNonQuery ( string sqlstr ) : void
SQLExecuteQuery ( string sqlstr ) : System.Data.DataRowCollection
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

MYSQLUserDB() public method

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

SQLExecuteNonQuery() public method

public SQLExecuteNonQuery ( string sqlstr ) : void
sqlstr string
return void

SQLExecuteQuery() public method

public SQLExecuteQuery ( string sqlstr ) : System.Data.DataRowCollection
sqlstr string
return System.Data.DataRowCollection

WriteUser() public method

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

isConnected() public method

public isConnected ( ) : bool
return bool