DbProviderServices.CreateCommandDefinition Method

 

Creates a Command Definition object.

Namespace:   System.Data.Entity.Core.Common
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodCreateCommandDefinition(DbCommand)

Creates 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

System_CAPS_pubmethodCreateCommandDefinition(DbCommandTree)

Creates a Command Definition object given a command tree.

System_CAPS_pubmethodCreateCommandDefinition(DbProviderManifest, DbCommandTree)

Creates command definition from specified manifest and command tree.


DbProviderServices.CreateCommandDefinition Method (DbCommand)

Creates 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 DbCommandDefinition CreateCommandDefinition(
	DbCommand prototype
)

Parameters

prototype
Type: System.Data.Common.DbCommand

the prototype command

Return Value

Type: System.Data.Entity.Core.Common.DbCommandDefinition

an executable command definition object


DbProviderServices.CreateCommandDefinition Method (DbCommandTree)

Creates a Command Definition object given a command tree.

public DbCommandDefinition CreateCommandDefinition(
	DbCommandTree commandTree
)

Parameters

commandTree
Type: System.Data.Entity.Core.Common.CommandTrees.DbCommandTree

command tree for the statement

Return Value

Type: System.Data.Entity.Core.Common.DbCommandDefinition

an executable command definition object

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


DbProviderServices.CreateCommandDefinition Method (DbProviderManifest, DbCommandTree)

Creates command definition from specified manifest and command tree.

public DbCommandDefinition CreateCommandDefinition(
	DbProviderManifest providerManifest,
	DbCommandTree commandTree
)

Parameters

providerManifest
Type: System.Data.Entity.Core.Common.DbProviderManifest

The manifest.

commandTree
Type: System.Data.Entity.Core.Common.CommandTrees.DbCommandTree

The command tree.

Return Value

Type: System.Data.Entity.Core.Common.DbCommandDefinition

The created command definition.