MutableAnnotatableExtensions MutableAnnotatableExtensions Class

Extension methods for IMutableAnnotatable.

Syntax

Declaration

public static class MutableAnnotatableExtensionsPublic Module MutableAnnotatableExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • MutableAnnotatableExtensions
    MutableAnnotatableExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

Adds annotations to an object.

Gets the existing annotation with a given key, or adds a new annotation if one does not exist.

Methods

  • AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)
    AddAnnotations(IMutableAnnotatable, IEnumerable(Of IAnnotation))

    Adds annotations to an object.

    public static void AddAnnotations(this IMutableAnnotatable annotatable, IEnumerable<IAnnotation> annotations)<ExtensionAttribute>
    Public Shared Sub AddAnnotations(annotatable As IMutableAnnotatable, annotations As IEnumerable(Of IAnnotation))

    Parameters

  • GetOrAddAnnotation(IMutableAnnotatable, String, String)
    GetOrAddAnnotation(IMutableAnnotatable, String, String)

    Gets the existing annotation with a given key, or adds a new annotation if one does not exist.

    public static Annotation GetOrAddAnnotation(this IMutableAnnotatable annotatable, string annotationName, string value)<ExtensionAttribute>
    Public Shared Function GetOrAddAnnotation(annotatable As IMutableAnnotatable, annotationName As String, value As String) As Annotation

    Parameters

    • annotatable

      The object to find or add the annotation to.

    • annotationName
      System.String
      System.String

      The key of the annotation to be found or added.

    • value
      System.String
      System.String

      The value to be stored in the annotation if a new one is created.

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.dll