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

批注值。

返回

同一生成器,以便可以链接多个调用。

适用于