共用方式為


AlterOperationBuilder<TOperation>.Annotation(String, Object) 方法

定義

使用指定的名稱/值組來標注 MigrationOperation

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<TOperation> Annotation (string name, object value);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.AlterOperationBuilder<TOperation> Annotation (string name, object? value);
override this.Annotation : 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 Annotation (name As String, value As Object) As AlterOperationBuilder(Of TOperation)

參數

name
String

批註名稱。

value
Object

註釋值。

傳回

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

適用於