DataAccessBase.CreateCommand

Creates a Command object and opens a connection

public virtual DbCommand CreateCommand(string sql,
	CommandType commandType,
	Object[] parameters)

Return Value

Command object or null on error

Parameters

sql
Sql string to execute

commandType
parameters
Either values mapping to @0,@1,@2 etc. or DbParameter objects created with CreateParameter()

Overloads:


See also:

Class DataAccessBase

© West Wind Technologies, 1996-2023 • Updated: 07/15/20
Comment or report problem with topic