The documentation comes from the Markdown files in the source code, so is always up-to-date but available only in English. Enjoy!
Executor
static class is the main gate to access the database. It's the only one used by the engine and if you are planning to send raw SQL commands to the current connection, this is the one you have to use.
Here are the available method overloads, many of them taking SqlPreCommand as a parameter:
Calls ExecuteScalar
on a DbConnection
of the current Connector
public static object ExecuteScalar(string sql)
public static object ExecuteScalar(string sql, List<DbParameter> parameters)
public static object ExecuteScalar(this SqlPreCommandSimple preCommand)
Calls ExecuteNonQuery
on a DbConnection
of the current Connector
public static object ExecuteNonQuery(string sql)
public static object ExecuteNonQuery(string sql, List<DbParameter> parameters)
public static object ExecuteNonQuery(this SqlPreCommandSimple preCommand)
Calls ExecuteDataTable
on a DbConnection
of the current Connector
public static object ExecuteDataTable(string sql)
public static object ExecuteDataTable(string sql, List<DbParameter> parameters)
public static object ExecuteDataTable(this SqlPreCommandSimple preCommand)
Calls ExecuteDataSet
on a DbConnection
of the current Connector
public static DataSet ExecuteDataSet(string sql)
public static DataSet ExecuteDataSet(string sql, List<DbParameter> parameters)
public static DataSet ExecuteDataSet(this SqlPreCommandSimple preCommand)
Calls ExecuteLeaves
on a DbConnection
of the current Connector
public static void ExecuteLeaves(this SqlPreCommand preCommand)
Calls ExecuteReader
on a DbConnection
of the current Connector and returns the DbDataReader
for you to use and Dispose
.
public static DbDataReader UnsafeExecuteDataReader(string sql)
public static DbDataReader UnsafeExecuteDataReader(string sql, List<DbParameter> parameters)
public static DbDataReader UnsafeExecuteDataReader(this SqlPreCommandSimple preCommand)
© Signum Software. All Rights Reserved.
Powered by Signum Framework