SnapDAL Library Documentation

DataFactory.CreateCommand Method (String, String)

Just create a Command from the provided sql statement(CommandType.Text), putting the existing connection on the command. This command will also replace an existing statement of the same name in the StatementManager

public IDbCommand CreateCommand(
   string name,
   string sql
);

Parameters

name
Name of the statement
sql
Sql text for the statement

Return Value

Implements

IDataLayer.CreateCommand

See Also

DataFactory Class | SnapDAL Namespace | DataFactory.CreateCommand Overload List