ReferenceOwnershipBuilder.HasForeignKeyAnnotation(String, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
新增或更新外鍵上的註解。 如果已有標註中指定的 annotation 鍵,其值會被更新。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder HasForeignKeyAnnotation(string annotation, object value);
abstract member HasForeignKeyAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder
override this.HasForeignKeyAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder
Public Overridable Function HasForeignKeyAnnotation (annotation As String, value As Object) As ReferenceOwnershipBuilder
參數
- annotation
- String
註解的鍵需新增或更新。
- value
- Object
註解中要儲存的值。
傳回
同一個建構器實例,這樣可以串接多個設定呼叫。