AlterOperationBuilder<TOperation>.OldAnnotation(String, Object) Method

Definition

Annotates the MigrationOperation with the given name/value pair as an annotation that was present before the alteration.

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)

Parameters

name
String

The annotation name.

value
Object

The annotation value.

Returns

The same builder so that multiple calls can be chained.

Applies to