C# Class MySqlDb, code

Mostrar archivo Open project: shendongnian/code Class Usage Examples

Private Properties

Property Type Description
ReadConnectionStringFromConfigFile string
RunSelectQuery IEnumerable

Public Methods

Method Description
FindUsersByAge ( int Age ) : IEnumerable
GetMetaDataById ( int ID ) : MetaData,
GetUserByID ( int ID ) : User,
GetUserByUsername ( string UserName ) : User,
MySqlDb ( )
MySqlDb ( string connectionString )
RunSelectQueryForMetadata ( string query, IEnumerable, parameters ) : IEnumerable

Private Methods

Method Description
ReadConnectionStringFromConfigFile ( ) : string
RunSelectQuery ( string query, Func, translateRecord, IEnumerable, parameters ) : IEnumerable

Method Details

FindUsersByAge() public method

public FindUsersByAge ( int Age ) : IEnumerable
Age int
return IEnumerable

GetMetaDataById() public method

public GetMetaDataById ( int ID ) : MetaData,
ID int
return MetaData,

GetUserByID() public method

public GetUserByID ( int ID ) : User,
ID int
return User,

GetUserByUsername() public method

public GetUserByUsername ( string UserName ) : User,
UserName string
return User,

MySqlDb() public method

public MySqlDb ( )

MySqlDb() public method

public MySqlDb ( string connectionString )
connectionString string

RunSelectQueryForMetadata() public method

public RunSelectQueryForMetadata ( string query, IEnumerable, parameters ) : IEnumerable
query string
parameters IEnumerable,
return IEnumerable