語言

IConventionAnnotatable.AddAnnotations 方法

定義

為物件添加註解。

public virtual void AddAnnotations(System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> annotations, bool fromDataAnnotation = false);
abstract member AddAnnotations : seq<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> * bool -> unit
override this.AddAnnotations : seq<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> * bool -> unit
Public Overridable Sub AddAnnotations (annotations As IEnumerable(Of IConventionAnnotation), Optional fromDataAnnotation As Boolean = false)

參數

annotations
IEnumerable<IConventionAnnotation>

註解待加入。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

適用於