IndexAnnotationSerializer Class
This class is used to serialize and deserialize IndexAnnotation objects so that they can be stored in the EDMX form of the Entity Framework model.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | IndexAnnotationSerializer() | Initializes a new instance of the IndexAnnotationSerializer class. |
Name | Description | |
---|---|---|
![]() | Deserialize(String, String) | Deserializes the given string back into an IndexAnnotation object. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Serialize(String, Object) | Serializes the given IndexAnnotation into a string for storage in the EDMX XML. |
![]() | ToString() | (Inherited from Object.) |
An example of the serialized format is: { Name: 'MyIndex', Order: 7, IsClustered: True, IsUnique: False } { } { Name: 'MyOtherIndex' }. Note that properties that have not been explicitly set in an index attribute will be excluded from the serialized output. So, in the example above, the first index has all properties specified, the second has none, and the third has just the name set.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.