Prepares a IDbCommand to run against the underlying database.

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
IDbCommand PrepareCommand(
	IDbCommand command
)
Visual Basic (Declaration)
Function PrepareCommand ( _
	command As IDbCommand _
) As IDbCommand

Parameters

command
Type: System.Data..::.IDbCommand
The IDbCommand to prepare.

Return Value

The supplied IDbCommand.

Examples

CopyC#
IDbCommand command = lightSpeedContext.DataProviderObjectFactory.CreateCommand();
command.CommandText = "SELECT @@VERSION AS SqlServerVersion";

command = unitOfWork.PrepareCommand(command);
object version = command.ExecuteScalar();

See Also