次の方法で共有


HistoryOperation コンストラクター

定義

オーバーロード

HistoryOperation(IList<DbModificationCommandTree>, Object)

HistoryOperation クラスの新しいインスタンスを初期化します。

Entity Framework Migrations API は、信頼されていないソース (アプリケーションのエンド ユーザーなど) によって提供される入力を受け入れるようには設計されていません。 このようなソースから入力を受け入れる場合は、SQL インジェクション攻撃などから保護するために、これらの API に渡される前に検証する必要があります。

HistoryOperation(String, String, Object)

HistoryOperation クラスの新しいインスタンスを初期化します。

HistoryOperation(IList<DbModificationCommandTree>, Object)

HistoryOperation クラスの新しいインスタンスを初期化します。

Entity Framework Migrations API は、信頼されていないソース (アプリケーションのエンド ユーザーなど) によって提供される入力を受け入れるようには設計されていません。 このようなソースから入力を受け入れる場合は、SQL インジェクション攻撃などから保護するために、これらの API に渡される前に検証する必要があります。

[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" }' などの引数を指定するには、匿名型構文を使用します。

適用対象