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
Afficher le fichier Open project: azavea/net-dao Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
CreateDbParameter ( ) : DbParameter
ExecuteDbDataReader ( CommandBehavior behavior ) : System.Data.Common.DbDataReader

Method Details

Cancel() public méthode

public Cancel ( ) : void
Résultat void

CreateDbParameter() protected méthode

protected CreateDbParameter ( ) : DbParameter
Résultat System.Data.Common.DbParameter

ExecuteDbDataReader() protected méthode

protected ExecuteDbDataReader ( CommandBehavior behavior ) : System.Data.Common.DbDataReader
behavior CommandBehavior
Résultat System.Data.Common.DbDataReader

ExecuteNonQuery() public méthode

public ExecuteNonQuery ( ) : int
Résultat int

ExecuteScalar() public méthode

public ExecuteScalar ( ) : object
Résultat object

Prepare() public méthode

public Prepare ( ) : void
Résultat void

TestCommand() public méthode

Create a new TestCommand
public TestCommand ( ) : System
Résultat System

TestCommand() public méthode

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.
Résultat System