IndexAnnotationSerializer Class

Definition

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.

public class IndexAnnotationSerializer : System.Data.Entity.Infrastructure.IMetadataAnnotationSerializer
type IndexAnnotationSerializer = class
    interface IMetadataAnnotationSerializer
Public Class IndexAnnotationSerializer
Implements IMetadataAnnotationSerializer
Inheritance
IndexAnnotationSerializer
Implements

Remarks

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.

Constructors

IndexAnnotationSerializer()

Methods

Deserialize(String, String)

Deserializes the given string back into an IndexAnnotation object.

Serialize(String, Object)

Serializes the given IndexAnnotation into a string for storage in the EDMX XML.

Applies to