Bewerken

Delen via


EntityCommand Constructors

Definition

Initializes a new instance of the EntityCommand class.

Overloads

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()

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

public:
 EntityCommand();
public EntityCommand ();
Public Sub New ()

Applies to

EntityCommand(String)

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

public:
 EntityCommand(System::String ^ statement);
public EntityCommand (string statement);
new System.Data.EntityClient.EntityCommand : string -> System.Data.EntityClient.EntityCommand
Public Sub New (statement As String)

Parameters

statement
String

The text of the command.

Applies to

EntityCommand(String, EntityConnection)

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

public:
 EntityCommand(System::String ^ statement, System::Data::EntityClient::EntityConnection ^ connection);
public EntityCommand (string statement, System.Data.EntityClient.EntityConnection connection);
new System.Data.EntityClient.EntityCommand : string * System.Data.EntityClient.EntityConnection -> System.Data.EntityClient.EntityCommand
Public Sub New (statement As String, connection As EntityConnection)

Parameters

statement
String

The text of the command.

connection
EntityConnection

A connection to the data source.

Applies to

EntityCommand(String, EntityConnection, EntityTransaction)

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

public:
 EntityCommand(System::String ^ statement, System::Data::EntityClient::EntityConnection ^ connection, System::Data::EntityClient::EntityTransaction ^ transaction);
public EntityCommand (string statement, System.Data.EntityClient.EntityConnection connection, System.Data.EntityClient.EntityTransaction transaction);
new System.Data.EntityClient.EntityCommand : string * System.Data.EntityClient.EntityConnection * System.Data.EntityClient.EntityTransaction -> System.Data.EntityClient.EntityCommand
Public Sub New (statement As String, connection As EntityConnection, transaction As EntityTransaction)

Parameters

statement
String

The text of the command.

connection
EntityConnection

A connection to the data source.

transaction
EntityTransaction

The transaction in which the command executes.

Applies to