DbCommandDefinition-Konstruktor (DbCommand, Func<DbCommand, DbCommand>)
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Initialisiert eine neue Instanz der DbCommandDefinition-Klasse mit dem angegebenen DbCommand.
Namespace: System.Data.Entity.Core.Common
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Protected Friend Sub New ( _
prototype As DbCommand, _
cloneMethod As Func(Of DbCommand, DbCommand) _
)
'Usage
Dim prototype As DbCommand
Dim cloneMethod As Func(Of DbCommand, DbCommand)
Dim instance As New DbCommandDefinition(prototype, _
cloneMethod)
protected internal DbCommandDefinition(
DbCommand prototype,
Func<DbCommand, DbCommand> cloneMethod
)
protected public:
DbCommandDefinition(
DbCommand^ prototype,
Func<DbCommand^, DbCommand^>^ cloneMethod
)
new :
prototype:DbCommand *
cloneMethod:Func<DbCommand, DbCommand> -> DbCommandDefinition
function DbCommandDefinition(
prototype : DbCommand,
cloneMethod : Func<DbCommand, DbCommand>
)
Parameter
- prototype
Typ: System.Data.Common.DbCommand
Der angegebene DbCommand.
- cloneMethod
Typ: System.Func<DbCommand, DbCommand>
Methode zum Klonen von DbCommand