IndexAnnotationSerializer.Serialize Method (String, Object)

 

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

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

public virtual string Serialize(
	string name,
	object value
)

Parameters

name
Type: System.String

The name of the annotation that is being serialized.

value
Type: System.Object

The value to serialize which must be an IndexAnnotation object.

Return Value

Type: System.String

The serialized value.