DbCommandDefinition.CreateCommand-Methode
[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.]
Erstellt ein DbCommand-Objekt, das ausgeführt werden kann, und gibt dieses zurück.
Namespace: System.Data.Entity.Core.Common
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Overridable Function CreateCommand As DbCommand
'Usage
Dim instance As DbCommandDefinition
Dim returnValue As DbCommand
returnValue = instance.CreateCommand()
public virtual DbCommand CreateCommand()
public:
virtual DbCommand^ CreateCommand()
abstract CreateCommand : unit -> DbCommand
override CreateCommand : unit -> DbCommand
public function CreateCommand() : DbCommand
Rückgabewert
Typ: System.Data.Common.DbCommand
Der Befehl für die Datenbank.