다음을 통해 공유


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

주석 값입니다.

반환

여러 호출을 연결할 수 있도록 동일한 작성기입니다.

적용 대상