Command type for
CommandText.
Default value
Auto, unless otherwise specified in the parameter
NeData:Sql:CommandType of configuration file.
Namespace: Nemiro.Data.SqlAssembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
public TypeCommand CommandType { get; set; }
public TypeCommand CommandType { get; set; }
Public Property CommandType As TypeCommand
Get
Set
Public Property CommandType As TypeCommand
Get
Set
Property Value
Type:
TypeCommandusing (SqlClient client = new SqlClient())
{
client.CommandType = TypeCommand.StoredProcedure;
client.CommandText = "MyProcedure";
client.ExecuteNonQuery();
}
using (SqlClient client = new SqlClient())
{
client.CommandType = TypeCommand.StoredProcedure;
client.CommandText = "MyProcedure";
client.ExecuteNonQuery();
}
Using client As New SqlClient())
client.CommandType = TypeCommand.StoredProcedure
client.CommandText = "MyProcedure"
client.ExecuteNonQuery()
End Using
Using client As New SqlClient())
client.CommandType = TypeCommand.StoredProcedure
client.CommandText = "MyProcedure"
client.ExecuteNonQuery()
End Using