共用方式為


ComplexPropertyBuilder<TComplex>.HasTypeAnnotation 方法

定義

在實體類型上加入或更新批註。 如果 中 annotation 指定索引鍵的注釋已經存在,其值將會更新。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> HasTypeAnnotation (string annotation, object? value);
override this.HasTypeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
Public Overridable Function HasTypeAnnotation (annotation As String, value As Object) As ComplexPropertyBuilder(Of TComplex)

參數

annotation
String

要加入或更新之批註的索引鍵。

value
Object

要儲存在批註中的值。

傳回

相同的 typeBuilder 實例,以便鏈結多個組態呼叫。

適用於