共用方式為


OwnedNavigationSplitTableBuilder<TOwnerEntity,TDependentEntity>.HasAnnotation 方法

定義

加入或更新資料表上的批註。 如果 中 annotation 指定索引鍵的注釋已經存在,則會更新其值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder<TOwnerEntity,TDependentEntity> HasAnnotation (string annotation, object? value);
override this.HasAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
Public Overridable Function HasAnnotation (annotation As String, value As Object) As OwnedNavigationSplitTableBuilder(Of TOwnerEntity, TDependentEntity)

參數

annotation
String

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

value
Object

要儲存在批註中的值。

傳回

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

適用於