EntityCommand 建構函式

定義

初始化 EntityCommand 類別的新執行個體。

多載

EntityCommand()

使用指定的值,初始化 EntityCommand 類別的新執行個體。

EntityCommand(String)

使用指定的陳述式,初始化 EntityCommand 類別的新執行個體。

EntityCommand(String, EntityConnection)

使用指定的陳述式和連接,初始化 EntityCommand 類別的新執行個體。

EntityCommand(String, EntityConnection, EntityTransaction)

使用指定的陳述式、連接和異動,初始化 EntityCommand 類別的新執行個體。

EntityCommand()

使用指定的值,初始化 EntityCommand 類別的新執行個體。

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

適用於

EntityCommand(String)

使用指定的陳述式,初始化 EntityCommand 類別的新執行個體。

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

命令的文字。

適用於

EntityCommand(String, EntityConnection)

使用指定的陳述式和連接,初始化 EntityCommand 類別的新執行個體。

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

命令的文字。

connection
EntityConnection

資料來源的連接。

適用於

EntityCommand(String, EntityConnection, EntityTransaction)

使用指定的陳述式、連接和異動,初始化 EntityCommand 類別的新執行個體。

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

命令的文字。

connection
EntityConnection

資料來源的連接。

transaction
EntityTransaction

命令執行的所在交易。

適用於