共用方式為


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

註釋值。

傳回

相同的產生器,讓多個呼叫可以鏈結。

適用於