EntityCommand Constructor
Initializes a new instance of the EntityCommand class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | EntityCommand() | Initializes a new instance of the EntityCommand class using the specified values. |
![]() | EntityCommand(String) | Initializes a new instance of the EntityCommand class with the specified statement. |
![]() | EntityCommand(String, EntityConnection) | Initializes a new instance of the EntityCommand class with the specified statement and connection. |
![]() | EntityCommand(String, EntityConnection, EntityTransaction) | Initializes a new instance of the EntityCommand class with the specified statement, connection and transaction. |
![]() | EntityCommand(String, EntityConnection, IDbDependencyResolver) | Constructs the EntityCommand object with the given eSQL statement and the connection object to use |
EntityCommand Constructor ()
Initializes a new instance of the EntityCommand class using the specified values.
EntityCommand Constructor (String)
Initializes a new instance of the EntityCommand class with the specified statement.
Parameters
- statement
-
Type:
System.String
The text of the command.
EntityCommand Constructor (String, EntityConnection)
Initializes a new instance of the EntityCommand class with the specified statement and connection.
Parameters
- statement
-
Type:
System.String
The text of the command.
- connection
-
Type:
System.Data.Entity.Core.EntityClient.EntityConnection
A connection to the data source.
EntityCommand Constructor (String, EntityConnection, EntityTransaction)
Initializes a new instance of the EntityCommand class with the specified statement, connection and transaction.
public EntityCommand( string statement, EntityConnection connection, EntityTransaction transaction )
Parameters
- statement
-
Type:
System.String
The text of the command.
- connection
-
Type:
System.Data.Entity.Core.EntityClient.EntityConnection
A connection to the data source.
- transaction
-
Type:
System.Data.Entity.Core.EntityClient.EntityTransaction
The transaction in which the command executes.
EntityCommand Constructor (String, EntityConnection, IDbDependencyResolver)
Constructs the EntityCommand object with the given eSQL statement and the connection object to use
public EntityCommand( string statement, EntityConnection connection, IDbDependencyResolver resolver )
Parameters
- statement
-
Type:
System.String
The eSQL command text to execute
- connection
-
Type:
System.Data.Entity.Core.EntityClient.EntityConnection
The connection object
- resolver
-
Type:
System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver
Resolver used to resolve DbProviderServices