SqlMapper.Execute method
namespace: Serenity.Data assembly: Serenity.Net.Data
Execute parameterized SQL
public static int Execute(this IDbConnection cnn, string sql, object param = null,
IDbTransaction transaction = null, int? commandTimeout = null,
CommandType? commandType = default(CommandType?))
parameter | description |
---|---|
cnn | Connection. |
sql | SQL query. |
param | The parameters. |
transaction | The transaction. |
commandTimeout | The command timeout. |
commandType | Type of the command. |
Return Value
Number of rows affected
See Also
- class SqlMapper