語言

ComplexCollectionBuilder<TComplex>.HasPropertyAnnotation 方法

定義

新增或更新複雜屬性的註解。 如果已有標註中指定的 annotation 鍵,其值會被更新。

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

參數

annotation
String

註解的鍵需新增或更新。

value
Object

註解中要儲存的值。

傳回

同一個 typeBuilder 實例,這樣可以串連多個設定呼叫。

適用於