C# Class DesktopHelper.DB.SqlAction

Show file Open project: JimmyFung/DesktopHelper Class Usage Examples

Public Methods

Method Description
DataTableQuery ( string sql, SQLiteParameter parameters ) : DataTable

执行查询SQL,返回查询结果表

IntQuery ( string sql, SQLiteParameter parameters ) : int

执行查询SQL,返回受影响行数

StringQuery ( string sql, SQLiteParameter parameters ) : string

执行查询SQL,返回查询结果的首行首列

Method Details

DataTableQuery() public method

执行查询SQL,返回查询结果表
public DataTableQuery ( string sql, SQLiteParameter parameters ) : DataTable
sql string sql语句
parameters System.Data.SQLite.SQLiteParameter 参数
return System.Data.DataTable

IntQuery() public method

执行查询SQL,返回受影响行数
public IntQuery ( string sql, SQLiteParameter parameters ) : int
sql string sql语句
parameters System.Data.SQLite.SQLiteParameter 参数
return int

StringQuery() public method

执行查询SQL,返回查询结果的首行首列
public StringQuery ( string sql, SQLiteParameter parameters ) : string
sql string sql语句
parameters System.Data.SQLite.SQLiteParameter 参数
return string