EntityConnection.CreateDbCommand, méthode
[Cette page concerne Entity Framework version 6. La dernière version est disponible sous le nom de package 'Entity Framework' NuGet. Pour plus d'informations sur Entity Framework, consultez msdn.com/data/ef.]
Crée un objet de commande qui utilise cet objet de connexion
Espace de noms : System.Data.Entity.Core.EntityClient
Assembly : EntityFramework (dans EntityFramework.dll)
Syntaxe
'Déclaration
Protected Overrides Function CreateDbCommand As DbCommand
'Utilisation
Dim returnValue As DbCommand
returnValue = Me.CreateDbCommand()
protected override DbCommand CreateDbCommand()
protected:
virtual DbCommand^ CreateDbCommand() override
abstract CreateDbCommand : unit -> DbCommand
override CreateDbCommand : unit -> DbCommand
protected override function CreateDbCommand() : DbCommand
Valeur de retour
Type : System.Data.Common.DbCommand
Objet de commande.