Share via


DbProviderServices.CreateCommandDefinition Method

Definition

Overloads

CreateCommandDefinition(DbCommand)

Create the default DbCommandDefinition object based on the prototype command This method is intended for provider writers to build a default command definition from a command. Note: This will clone the prototype

CreateCommandDefinition(DbCommandTree)

Create a Command Definition object given a command tree.

CreateCommandDefinition(DbProviderManifest, DbCommandTree)

Creates command definition from specified manifest and command tree.

CreateCommandDefinition(DbCommand)

Create the default DbCommandDefinition object based on the prototype command This method is intended for provider writers to build a default command definition from a command. Note: This will clone the prototype

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

Parameters

prototype
DbCommand

the prototype command

Returns

an executable command definition object

Applies to

CreateCommandDefinition(DbCommandTree)

Create a Command Definition object given a command tree.

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

Parameters

commandTree
DbCommandTree

command tree for the statement

Returns

an executable command definition object

Remarks

This method simply delegates to the provider's implementation of CreateDbCommandDefinition.

Applies to

CreateCommandDefinition(DbProviderManifest, DbCommandTree)

Creates command definition from specified manifest and command tree.

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

Parameters

providerManifest
DbProviderManifest

The manifest.

commandTree
DbCommandTree

The command tree.

Returns

The created command definition.

Applies to