ConventionAnnotatableExtensions Class

Definition

Caution

Use IConventionAnnotatable

Extension methods for IConventionAnnotatable.

public static class ConventionAnnotatableExtensions
[System.Obsolete("Use IConventionAnnotatable")]
public static class ConventionAnnotatableExtensions
type ConventionAnnotatableExtensions = class
[<System.Obsolete("Use IConventionAnnotatable")>]
type ConventionAnnotatableExtensions = class
Public Module ConventionAnnotatableExtensions
Public Class ConventionAnnotatableExtensions
Inheritance
ConventionAnnotatableExtensions
Attributes

Methods

AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)

Adds annotations to an object.

GetAnnotation(IConventionAnnotatable, String)

Gets the annotation with the given name, throwing if it does not exist.

SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists. Removes the existing annotation if null is supplied.

Applies to