点击或拖拽改变大小

DapperDbHelperExecute 方法 (String, Object, IDbTransaction, NullableInt32, NullableCommandType)

Sweet 开发框架
执行sql语句,返回受影响的行数

命名空间:  Sweet.DBUtility.SQLServer
程序集:  Sweet.DBUtility.SQLServer (在 Sweet.DBUtility.SQLServer.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static int Execute(
	string sql,
	Object param = null,
	IDbTransaction transaction = null,
	int? commandTimeout = null,
	CommandType? commandType = null
)

参数

sql
类型:SystemString
查询Sql语句或存储过程名称
param (Optional)
类型:SystemObject
参数值(可选)
transaction (Optional)
类型:System.DataIDbTransaction
事务名称(可选)
commandTimeout (Optional)
类型:SystemNullableInt32
超时时间(可选)
commandType (Optional)
类型:SystemNullableCommandType
指定如果解释sql字符串:语句/存储过程(可选)

返回值

类型:Int32
返回受影响的行数
参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架