共用方式為


HistoryOperation 建構函式

定義

多載

HistoryOperation(IList<DbModificationCommandTree>, Object)

初始化 HistoryOperation 類別的新實例。

Entity Framework 移轉 API 並非設計來接受不受信任的來源所提供的輸入, (例如應用程式的使用者) 。 如果從這類來源接受輸入,則應該先加以驗證,再傳遞至這些 API 以防範 SQL 插入式攻擊等。

HistoryOperation(String, String, Object)

初始化 HistoryOperation 類別的新實例。

HistoryOperation(IList<DbModificationCommandTree>, Object)

初始化 HistoryOperation 類別的新實例。

Entity Framework 移轉 API 並非設計來接受不受信任的來源所提供的輸入, (例如應用程式的使用者) 。 如果從這類來源接受輸入,則應該先加以驗證,再傳遞至這些 API 以防範 SQL 插入式攻擊等。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public HistoryOperation (System.Collections.Generic.IList<System.Data.Entity.Core.Common.CommandTrees.DbModificationCommandTree> commandTrees, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.HistoryOperation : System.Collections.Generic.IList<System.Data.Entity.Core.Common.CommandTrees.DbModificationCommandTree> * obj -> System.Data.Entity.Migrations.Model.HistoryOperation
Public Sub New (commandTrees As IList(Of DbModificationCommandTree), Optional anonymousArguments As Object = null)

參數

commandTrees
IList<DbModificationCommandTree>

一連串命令樹,表示要套用至歷程記錄資料表的作業。

anonymousArguments
Object

使用匿名型別語法來指定引數,例如 'new { SampleArgument = 「MyValue」 }'。

屬性

適用於

HistoryOperation(String, String, Object)

初始化 HistoryOperation 類別的新實例。

protected HistoryOperation (string table, string migrationId, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.HistoryOperation : string * string * obj -> System.Data.Entity.Migrations.Model.HistoryOperation
Protected Sub New (table As String, migrationId As String, Optional anonymousArguments As Object = null)

參數

table
String

移轉歷程記錄資料表的名稱。

migrationId
String

受影響的移轉名稱。

anonymousArguments
Object

提供者可能處理的其他引數。 使用匿名型別語法來指定引數,例如 'new { SampleArgument = 「MyValue」 }'。

適用於