ConventionAnnotatableExtensions.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 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)
Parameters
- annotatable
- IConventionAnnotatable
The object to add the annotations to.
- annotations
- IEnumerable<IConventionAnnotation>
The annotations to be added.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework