共用方式為


PropertiesConfigurationBuilder.HaveAnnotation(String, Object) 方法

定義

在 屬性上加入或更新批註。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder HaveAnnotation (string annotation, object value);
abstract member HaveAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
override this.HaveAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
Public Overridable Function HaveAnnotation (annotation As String, value As Object) As PropertiesConfigurationBuilder

參數

annotation
String

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

value
Object

要儲存在批註中的值。

傳回

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

適用於