EntityCommand Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| EntityCommand() |
Inicjuje EntityCommand nowe wystąpienie klasy przy użyciu określonych wartości. |
| EntityCommand(String) |
Inicjuje EntityCommand nowe wystąpienie klasy za pomocą określonej instrukcji. |
| EntityCommand(String, EntityConnection) |
Inicjuje nowe wystąpienie EntityCommand klasy z określoną instrukcją i połączeniem. |
| EntityCommand(String, EntityConnection, EntityTransaction) |
Inicjuje EntityCommand nowe wystąpienie klasy z określoną instrukcją, połączeniem i transakcją. |
| EntityCommand(String, EntityConnection, IDbDependencyResolver) |
Tworzy obiekt EntityCommand z daną instrukcją eSQL i obiektem połączenia do użycia |
EntityCommand()
Inicjuje EntityCommand nowe wystąpienie klasy przy użyciu określonych wartości.
public EntityCommand ();
Public Sub New ()
Dotyczy
EntityCommand(String)
Inicjuje EntityCommand nowe wystąpienie klasy za pomocą określonej instrukcji.
public EntityCommand (string statement);
new System.Data.Entity.Core.EntityClient.EntityCommand : string -> System.Data.Entity.Core.EntityClient.EntityCommand
Public Sub New (statement As String)
Parametry
- statement
- String
Tekst polecenia.
Dotyczy
EntityCommand(String, EntityConnection)
Inicjuje nowe wystąpienie EntityCommand klasy z określoną instrukcją i połączeniem.
public EntityCommand (string statement, System.Data.Entity.Core.EntityClient.EntityConnection connection);
new System.Data.Entity.Core.EntityClient.EntityCommand : string * System.Data.Entity.Core.EntityClient.EntityConnection -> System.Data.Entity.Core.EntityClient.EntityCommand
Public Sub New (statement As String, connection As EntityConnection)
Parametry
- statement
- String
Tekst polecenia.
- connection
- EntityConnection
Połączenie ze źródłem danych.
Dotyczy
EntityCommand(String, EntityConnection, EntityTransaction)
Inicjuje EntityCommand nowe wystąpienie klasy z określoną instrukcją, połączeniem i transakcją.
public EntityCommand (string statement, System.Data.Entity.Core.EntityClient.EntityConnection connection, System.Data.Entity.Core.EntityClient.EntityTransaction transaction);
new System.Data.Entity.Core.EntityClient.EntityCommand : string * System.Data.Entity.Core.EntityClient.EntityConnection * System.Data.Entity.Core.EntityClient.EntityTransaction -> System.Data.Entity.Core.EntityClient.EntityCommand
Public Sub New (statement As String, connection As EntityConnection, transaction As EntityTransaction)
Parametry
- statement
- String
Tekst polecenia.
- connection
- EntityConnection
Połączenie ze źródłem danych.
- transaction
- EntityTransaction
Transakcja, w której jest wykonywane polecenie.
Dotyczy
EntityCommand(String, EntityConnection, IDbDependencyResolver)
Tworzy obiekt EntityCommand z daną instrukcją eSQL i obiektem połączenia do użycia
public EntityCommand (string statement, System.Data.Entity.Core.EntityClient.EntityConnection connection, System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver resolver);
new System.Data.Entity.Core.EntityClient.EntityCommand : string * System.Data.Entity.Core.EntityClient.EntityConnection * System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver -> System.Data.Entity.Core.EntityClient.EntityCommand
Public Sub New (statement As String, connection As EntityConnection, resolver As IDbDependencyResolver)
Parametry
- statement
- String
Tekst polecenia eSQL do wykonania
- connection
- EntityConnection
Obiekt połączenia
- resolver
- IDbDependencyResolver
Rozpoznawanie nazw używanych do rozpoznawania obiektów DbProviderServices