ConventionAnnotatableExtensions.AddAnnotations 方法

定義

將批註加入物件。

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

參數

annotatable
IConventionAnnotatable

要加入批註的物件。

annotations
IEnumerable<IConventionAnnotation>

要加入的批註。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

適用於