Costruttore EntityCommand (String, EntityConnection, IDbDependencyResolver)
[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]
Costruisce l'oggetto EntityCommand con l'istruzione eSQL specificata e l'oggetto connessione da utilizzare
Spazio dei nomi: System.Data.Entity.Core.EntityClient
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Public Sub New ( _
statement As String, _
connection As EntityConnection, _
resolver As IDbDependencyResolver _
)
'Utilizzo
Dim statement As String
Dim connection As EntityConnection
Dim resolver As IDbDependencyResolver
Dim instance As New EntityCommand(statement, _
connection, resolver)
public EntityCommand(
string statement,
EntityConnection connection,
IDbDependencyResolver resolver
)
public:
EntityCommand(
String^ statement,
EntityConnection^ connection,
IDbDependencyResolver^ resolver
)
new :
statement:string *
connection:EntityConnection *
resolver:IDbDependencyResolver -> EntityCommand
public function EntityCommand(
statement : String,
connection : EntityConnection,
resolver : IDbDependencyResolver
)
Parametri
- statement
Tipo: System.String
Testo del comando eSQL da eseguire
- connection
Tipo: System.Data.Entity.Core.EntityClient.EntityConnection
Oggetto connessione
- resolver
Tipo: System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver
Sistema di risoluzione utilizzato per risolvere DbProviderServices