Freigeben über


EntityCommand-Konstruktor (String, EntityConnection)

[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 EntityCommand-Klasse mit der angegebenen Anweisung und Verbindung.

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

Syntax

'Declaration
Public Sub New ( _
    statement As String, _
    connection As EntityConnection _
)
'Usage
Dim statement As String 
Dim connection As EntityConnection 

Dim instance As New EntityCommand(statement, _
    connection)
public EntityCommand(
    string statement,
    EntityConnection connection
)
public:
EntityCommand(
    String^ statement, 
    EntityConnection^ connection
)
new : 
        statement:string * 
        connection:EntityConnection -> EntityCommand
public function EntityCommand(
    statement : String, 
    connection : EntityConnection
)

Parameter

Siehe auch

Verweis

EntityCommand Klasse

EntityCommand-Überladung

System.Data.Entity.Core.EntityClient-Namespace