EntityCommand Constructors

Definition

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(String, EntityConnection, IDbDependencyResolver)

Constructs the EntityCommand object with the given eSQL statement and the connection object to use

EntityCommand()

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

public EntityCommand ();
Public Sub New ()

Applies to

EntityCommand(String)

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

public EntityCommand (string statement);
new System.Data.Entity.Core.EntityClient.EntityCommand : string -> System.Data.Entity.Core.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 (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)

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

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

EntityCommand(String, EntityConnection, IDbDependencyResolver)

Constructs the EntityCommand object with the given eSQL statement and the connection object to use

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)

Parameters

statement
String

The eSQL command text to execute

connection
EntityConnection

The connection object

resolver
IDbDependencyResolver

Resolver used to resolve DbProviderServices

Applies to