DbProviderServices.CreateCommandDefinition Method
Creates a Command Definition object.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | CreateCommandDefinition(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 |
![]() | CreateCommandDefinition(DbCommandTree) | Creates a Command Definition object given a command tree. |
![]() | CreateCommandDefinition(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
Parameters
- prototype
-
Type:
System.Data.Common.DbCommand
the prototype command
Return Value
Type: System.Data.Entity.Core.Common.DbCommandDefinitionan executable command definition object
DbProviderServices.CreateCommandDefinition Method (DbCommandTree)
Creates a Command Definition object given a command tree.
Parameters
- commandTree
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbCommandTree
command tree for the statement
Return Value
Type: System.Data.Entity.Core.Common.DbCommandDefinitionan 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.DbCommandDefinitionThe created command definition.