C# Class OSAE.OSAESql

ファイルを表示 Open project: opensourceautomation/Open-Source-Automation Class Usage Examples

Public Methods

Method Description
RunQuery ( MySqlCommand command ) : DataSet

Runs the passed in SQL query on the database and returns a dataset of the results

RunSQL ( string sql ) : DataSet

Runs the passed in SQL query on the database and returns a dataset of the results

Method Details

RunQuery() public static method

Runs the passed in SQL query on the database and returns a dataset of the results
public static RunQuery ( MySqlCommand command ) : DataSet
command MySql.Data.MySqlClient.MySqlCommand
return System.Data.DataSet

RunSQL() public static method

Runs the passed in SQL query on the database and returns a dataset of the results
public static RunSQL ( string sql ) : DataSet
sql string
return System.Data.DataSet