SnapDAL Library Documentation

DataFactory.CreateCommand Method

Just create a Command from the provided sql statement(CommandType.Text), putting the existing connection on the command. The Command will be stand alone, ie it will not be added to the StatementManger or be cached in any way.

Overload List

Just create a Command from the provided sql statement(CommandType.Text), putting the existing connection on the command. The Command will be stand alone, ie it will not be added to the StatementManger or be cached in any way.

public IDbCommand CreateCommand(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,string);

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,string,IDbCommand);

See Also

DataFactory Class | SnapDAL Namespace