DbProviderServices.CreateCommandDefinition Method

Definition

从指定的命令定义创建命令定义对象。Creates a command definition object from the specified command definition.

Overloads

CreateCommandDefinition(DbCommandTree)

从命令树创建命令定义。Creates command definition from command tree.

CreateCommandDefinition(DbCommand)

创建使用指定命令的命令定义。Creates a command definition that uses a specified command.

CreateCommandDefinition(DbProviderManifest, DbCommandTree)

从指定的清单和命令树创建命令定义。Creates command definition from specified manifest and command tree.

CreateCommandDefinition(DbCommandTree)

从命令树创建命令定义。Creates command definition from command tree.

public:
 System::Data::Common::DbCommandDefinition ^ CreateCommandDefinition(System::Data::Common::CommandTrees::DbCommandTree ^ commandTree);
public System.Data.Common.DbCommandDefinition CreateCommandDefinition (System.Data.Common.CommandTrees.DbCommandTree commandTree);
member this.CreateCommandDefinition : System.Data.Common.CommandTrees.DbCommandTree -> System.Data.Common.DbCommandDefinition
Public Function CreateCommandDefinition (commandTree As DbCommandTree) As DbCommandDefinition

Parameters

commandTree
DbCommandTree

命令树。The command tree.

Returns

DbCommandDefinition

已创建的命令定义。The created command definition.

CreateCommandDefinition(DbCommand)

创建使用指定命令的命令定义。Creates a command definition that uses a specified command.

public:
 virtual System::Data::Common::DbCommandDefinition ^ CreateCommandDefinition(System::Data::Common::DbCommand ^ prototype);
public virtual System.Data.Common.DbCommandDefinition CreateCommandDefinition (System.Data.Common.DbCommand prototype);
abstract member CreateCommandDefinition : System.Data.Common.DbCommand -> System.Data.Common.DbCommandDefinition
override this.CreateCommandDefinition : System.Data.Common.DbCommand -> System.Data.Common.DbCommandDefinition
Public Overridable Function CreateCommandDefinition (prototype As DbCommand) As DbCommandDefinition

Parameters

prototype
DbCommand

用于创建命令定义的命令。The command used to create command definition.

Returns

DbCommandDefinition

使用指定命令的已创建命令定义。The created command definition that uses a specified command.

CreateCommandDefinition(DbProviderManifest, DbCommandTree)

从指定的清单和命令树创建命令定义。Creates command definition from specified manifest and command tree.

public:
 System::Data::Common::DbCommandDefinition ^ CreateCommandDefinition(System::Data::Common::DbProviderManifest ^ providerManifest, System::Data::Common::CommandTrees::DbCommandTree ^ commandTree);
public System.Data.Common.DbCommandDefinition CreateCommandDefinition (System.Data.Common.DbProviderManifest providerManifest, System.Data.Common.CommandTrees.DbCommandTree commandTree);
member this.CreateCommandDefinition : System.Data.Common.DbProviderManifest * System.Data.Common.CommandTrees.DbCommandTree -> System.Data.Common.DbCommandDefinition
Public Function CreateCommandDefinition (providerManifest As DbProviderManifest, commandTree As DbCommandTree) As DbCommandDefinition

Parameters

providerManifest
DbProviderManifest

该清单The manifest.

commandTree
DbCommandTree

命令树。The command tree.

Returns

DbCommandDefinition

已创建的命令定义。The created command definition.

Applies to