Export (0) Print
Expand All

EntityCommand Constructor (String, EntityConnection, EntityTransaction)

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

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

public EntityCommand(
	string statement,
	EntityConnection connection,
	EntityTransaction transaction
)

Parameters

statement
Type: System.String

The text of the command.

connection
Type: System.Data.EntityClient.EntityConnection

A connection to the data source.

transaction
Type: System.Data.EntityClient.EntityTransaction

The transaction in which the command executes.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft