AnnotationValues Class

 

Represents a pair of annotation values in a scaffolded or hand-coded DbMigration.

Namespace:   System.Data.Entity.Infrastructure.Annotations
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.Infrastructure.Annotations.AnnotationValues

public sealed class AnnotationValues

NameDescription
System_CAPS_pubmethodAnnotationValues(Object, Object)

Creates a new pair of annotation values.

NameDescription
System_CAPS_pubpropertyNewValue

Gets the new value of the annotation, which may be null if the annotation has been deleted.

System_CAPS_pubpropertyOldValue

Gets the old value of the annotation, which may be null if the annotation has just been created.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to this instance object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Retrieves the hash code.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(AnnotationValues, AnnotationValues)

Returns true if both annotation pairs contain the same values, otherwise false.

System_CAPS_puboperatorSystem_CAPS_staticInequality(AnnotationValues, AnnotationValues)

Returns true if the two annotation pairs contain different values, otherwise false.

Code First allows for custom annotations to be associated with columns and tables in the generated model. This class represents a pair of annotation values in a migration such that when the Code First model changes the old annotation value and the new annotation value can be provided to the migration and used in SQL generation.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.