Jaa


SerializationExtensionMethods Class

Definition

Contains extension methods for IEdmModel interfaces that are useful to serialization.

public static class SerializationExtensionMethods
type SerializationExtensionMethods = class
Public Module SerializationExtensionMethods
Inheritance
SerializationExtensionMethods

Methods

GetEdmxVersion(IEdmModel)

Gets the value for the EDMX version of the model.

GetNamespaceAlias(IEdmModel, String)

Gets the serialization alias for a given namespace.

GetNamespacePrefixMappings(IEdmModel)

Gets the preferred prefix mappings for xml namespaces from an IEdmModel

GetSchemaNamespace(IEdmVocabularyAnnotation, IEdmModel)

Gets the schema an annotation should be serialized in.

GetSerializationLocation(IEdmVocabularyAnnotation, IEdmModel)

Gets the location an annotation should be serialized in.

IsSerializedAsElement(IEdmValue, IEdmModel)

Gets an annotation indicating if the value should be serialized as an element.

IsValueExplicit(IEdmEnumMember, IEdmModel)

Gets an annotation indicating whether the value of an enum member should be explicitly serialized.

SetEdmxVersion(IEdmModel, Version)

Sets a value of EDMX version attribute of the model.

SetIsSerializedAsElement(IEdmValue, IEdmModel, Boolean)

Sets an annotation indicating if the value should be serialized as an element.

SetIsValueExplicit(IEdmEnumMember, IEdmModel, Nullable<Boolean>)

Sets an annotation indicating whether the value of an enum member should be explicitly serialized.

SetNamespaceAlias(IEdmModel, String, String)

Sets the serialization alias for a given namespace(including current model's schemas namespace-alias, and referenced models' schemas namespace-alias) TODO: REF make sure no duplicated alias.

SetNamespacePrefixMappings(IEdmModel, IEnumerable<KeyValuePair<String,String>>)

Sets an annotation on the IEdmModel to notify the serializer of preferred prefix mappings for xml namespaces.

SetSchemaNamespace(IEdmVocabularyAnnotation, IEdmModel, String)

Sets the schema an annotation should appear in.

SetSerializationLocation(IEdmVocabularyAnnotation, IEdmModel, Nullable<EdmVocabularyAnnotationSerializationLocation>)

Sets the location an annotation should be serialized in.

Applies to