SnapDAL Library Documentation

DataFactory.CreateCommand Method (String, String, IDbCommand)

Replace a Command in the StatementManager with the provided sql statement(CommandType.Text) Under the following conditions, the existing connection will be put on the IDbCommand - the commands connection is null - the type is compatible

public IDbCommand CreateCommand(
   string name,
   string sql,
   IDbCommand comm
);

Parameters

name
Name of the statement
sql
Sql text - if null, set to the sql of the IDbCommand
comm
The IDbCommand to build from

Return Value

IDbCommand for this command

Implements

IDataLayer.CreateCommand

See Also

DataFactory Class | SnapDAL Namespace | DataFactory.CreateCommand Overload List