IConventionAnnotatable.AddAnnotations Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds annotations to an object.
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)
Parameters
- annotations
- IEnumerable<IConventionAnnotation>
The annotations to be added.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework