EntityCommand 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 EntityCommand 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| 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
指令執行的交易。