次の方法で共有


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

定義

MigrationOperation変更前に存在していた注釈として、指定された名前と値のペアを使用して に注釈を付けます。

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<TOperation> OldAnnotation (string name, object value);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<TOperation> OldAnnotation (string name, object? value);
abstract member OldAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<'Operation (requires 'Operation :> Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation and 'Operation :> Microsoft.EntityFrameworkCore.Migrations.Operations.IAlterMigrationOperation)>
override this.OldAnnotation : 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 OldAnnotation (name As String, value As Object) As AlterOperationBuilder(Of TOperation)

パラメーター

name
String

注釈名。

value
Object

注釈の値。

戻り値

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

適用対象