Compartilhar via


AlterOperationBuilder<TOperation>.OldAnnotation(String, Object) Método

Definição

Anota o MigrationOperation com o par nome/valor fornecido como uma anotação que estava presente antes da alteração.

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)

Parâmetros

name
String

O nome da anotação.

value
Object

O valor da anotação.

Retornos

O mesmo construtor para que várias chamadas possam ser encadeadas.

Aplica-se a