Edit

Share via


DbCommandDefinition Constructors

Definition

Initializes a new instance of the DbCommandDefinition class.

Overloads

DbCommandDefinition()

Initializes a new instance of the DbCommandDefinition class.

DbCommandDefinition(DbCommand)

Initializes a new instance of the DbCommandDefinition class using the supplied DbCommand.

DbCommandDefinition()

Initializes a new instance of the DbCommandDefinition class.

protected:
 DbCommandDefinition();
protected DbCommandDefinition ();
Protected Sub New ()

Remarks

The parameterless constructor is used by classes that derive from DbCommandDefinition.

Applies to

DbCommandDefinition(DbCommand)

Initializes a new instance of the DbCommandDefinition class using the supplied DbCommand.

protected:
 DbCommandDefinition(System::Data::Common::DbCommand ^ prototype);
protected DbCommandDefinition (System.Data.Common.DbCommand prototype);
new System.Data.Common.DbCommandDefinition : System.Data.Common.DbCommand -> System.Data.Common.DbCommandDefinition
Protected Sub New (prototype As DbCommand)

Parameters

prototype
DbCommand

The supplied DbCommand.

Remarks

The supplied DbCommand must implement ICloneable; otherwise a ProviderIncompatibleException is raised.

This constructor is used by classes that derive from DbCommandDefinition.

Applies to