cmd.CommandType = CommandType.Text; 什么意思

来源:百度知道 编辑:UC知道 时间:2024/06/22 20:23:37
cmd.CommandType = CommandType.Text; 什么意思

CommandType是SqlCommand对象的一个属性,用于指定执行动作的形式,它告诉.net接下来执行的是一个文本(text)、存储过程(StoredProcedure)还是表名称(TableDirect).
而CommandType是一个枚举类型。有三个值:text、StoredProcedure、TableDirect用于表示SqlCommand对象CommandType的执行形式。