次の方法で共有


AlterOperationBuilder<TOperation>.Annotation(String, Object) メソッド

定義

指定した名前と値のペアで に MigrationOperation 注釈を付けます。

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<TOperation> Annotation (string name, object value);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<TOperation> Annotation (string name, object? value);
override this.Annotation : string * obj -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<'Operation (requires 'Operation :> Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation and 'Operation :> Microsoft.EntityFrameworkCore.Migrations.Operations.IAlterMigrationOperation)>
Public Overridable Function Annotation (name As String, value As Object) As AlterOperationBuilder(Of TOperation)

パラメーター

name
String

注釈名。

value
Object

注釈の値。

戻り値

複数の呼び出しをチェーンできるように、同じビルダー。

適用対象