次の方法で共有


AlterTableOperation コンストラクター

定義

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public AlterTableOperation(string name, System.Collections.Generic.IDictionary<string,System.Data.Entity.Infrastructure.Annotations.AnnotationValues> annotations, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.AlterTableOperation : string * System.Collections.Generic.IDictionary<string, System.Data.Entity.Infrastructure.Annotations.AnnotationValues> * obj -> System.Data.Entity.Migrations.Model.AlterTableOperation
Public Sub New (name As String, annotations As IDictionary(Of String, AnnotationValues), Optional anonymousArguments As Object = null)

パラメーター

name
String

注釈が変更されたテーブルの名前。

annotations
IDictionary<String,AnnotationValues>

変更されたテーブルのカスタム注釈。

anonymousArguments
Object

プロバイダーによって処理される可能性がある追加の引数。 "new { SampleArgument = "MyValue" }' などの引数を指定するには、匿名型構文を使用します。

属性

適用対象