EntityCommand 构造函数

定义

初始化 EntityCommand 类的新实例。Initializes a new instance of the EntityCommand class.

重载

EntityCommand()

使用指定的值初始化 EntityCommand 类的新实例。Initializes a new instance of the EntityCommand class using the specified values.

EntityCommand(String)

使用指定的语句初始化 EntityCommand 类的新实例。Initializes a new instance of the EntityCommand class with the specified statement.

EntityCommand(String, EntityConnection)

用指定的语句和连接初始化 EntityCommand 类的新实例。Initializes a new instance of the EntityCommand class with the specified statement and connection.

EntityCommand(String, EntityConnection, EntityTransaction)

用指定的语句,连接和事务初始化 EntityCommand 类的新实例。Initializes a new instance of the EntityCommand class with the specified statement, connection and transaction.

EntityCommand()

使用指定的值初始化 EntityCommand 类的新实例。Initializes a new instance of the EntityCommand class using the specified values.

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

适用于

EntityCommand(String)

使用指定的语句初始化 EntityCommand 类的新实例。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)

参数

statement
String

命令的文本。The text of the command.

适用于

EntityCommand(String, EntityConnection)

用指定的语句和连接初始化 EntityCommand 类的新实例。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)

参数

statement
String

命令的文本。The text of the command.

connection
EntityConnection

与数据源的连接。A connection to the data source.

适用于

EntityCommand(String, EntityConnection, EntityTransaction)

用指定的语句,连接和事务初始化 EntityCommand 类的新实例。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)

参数

statement
String

命令的文本。The text of the command.

connection
EntityConnection

与数据源的连接。A connection to the data source.

transaction
EntityTransaction

在其中执行命令的事务。The transaction in which the command executes.

适用于