EntityCommand Constructor

 

Initializes a new instance of the EntityCommand class.

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

NameDescription
System_CAPS_pubmethodEntityCommand()

Initializes a new instance of the EntityCommand class using the specified values.

System_CAPS_pubmethodEntityCommand(String)

Initializes a new instance of the EntityCommand class with the specified statement.

System_CAPS_pubmethodEntityCommand(String, EntityConnection)

Initializes a new instance of the EntityCommand class with the specified statement and connection.

System_CAPS_pubmethodEntityCommand(String, EntityConnection, EntityTransaction)

Initializes a new instance of the EntityCommand class with the specified statement, connection and transaction.

System_CAPS_pubmethodEntityCommand(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.

public EntityCommand()

EntityCommand Constructor (String)

Initializes a new instance of the EntityCommand class with the specified statement.

public EntityCommand(
	string 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.

public EntityCommand(
	string statement,
	EntityConnection 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