C# Class Azavea.Open.DAO.Tests.TestCommand

This thin DbCommand subclass avoids adding a dependency to a specific DbCommand implementation
Inheritance: System.Data.Common.DbCommand
Datei anzeigen Open project: azavea/net-dao Class Usage Examples

Public Methods

Method Description
Cancel ( ) : void
ExecuteNonQuery ( ) : int
ExecuteScalar ( ) : object
Prepare ( ) : void
TestCommand ( ) : System

Create a new TestCommand

TestCommand ( string sql ) : System

Create a new TestCommand with a SQL string

Sets the CommandType to CommandType.Text.

Protected Methods

Method Description
CreateDbParameter ( ) : DbParameter
ExecuteDbDataReader ( CommandBehavior behavior ) : System.Data.Common.DbDataReader

Method Details

Cancel() public method

public Cancel ( ) : void
return void

CreateDbParameter() protected method

protected CreateDbParameter ( ) : DbParameter
return System.Data.Common.DbParameter

ExecuteDbDataReader() protected method

protected ExecuteDbDataReader ( CommandBehavior behavior ) : System.Data.Common.DbDataReader
behavior CommandBehavior
return System.Data.Common.DbDataReader

ExecuteNonQuery() public method

public ExecuteNonQuery ( ) : int
return int

ExecuteScalar() public method

public ExecuteScalar ( ) : object
return object

Prepare() public method

public Prepare ( ) : void
return void

TestCommand() public method

Create a new TestCommand
public TestCommand ( ) : System
return System

TestCommand() public method

Create a new TestCommand with a SQL string
Sets the CommandType to CommandType.Text.
public TestCommand ( string sql ) : System
sql string The SQL string to be set on the CommandText property.
return System