SsdlSerializer.Serialize Method

 

SsdlSerializer.Serialize Method (EdmModel, String, String, String, XmlWriter, Boolean)

Serializes the EdmModel to the XmlWriter.

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "Nullability")]
public virtual bool Serialize(
	EdmModel dbDatabase,
	string namespaceName,
	string provider,
	string providerManifestToken,
	XmlWriter xmlWriter,
	bool serializeDefaultNullability = true
)

Parameters

dbDatabase
Type: System.Data.Entity.Core.Metadata.Edm.EdmModel

The EdmModel to serialize.

namespaceName
Type: System.String

The namespace name on the schema element.

provider
Type: System.String

The provider information on the schema element.

providerManifestToken
Type: System.String

The ProviderManifestToken information on the schema element.

xmlWriter
Type: System.Xml.XmlWriter

The XmlWriter to serialize to.

serializeDefaultNullability
Type: System.Boolean

A value indicating whether to serialize nullable attributes when they are set to the default value.

Return Value

Type: System.Boolean

true if model can be serialized; otherwise, false.


SsdlSerializer.Serialize Method (EdmModel, String, String, XmlWriter, Boolean)

Serializes the EdmModel to the XmlWriter.

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "Nullability")]
public virtual bool Serialize(
	EdmModel dbDatabase,
	string provider,
	string providerManifestToken,
	XmlWriter xmlWriter,
	bool serializeDefaultNullability = true
)

Parameters

dbDatabase
Type: System.Data.Entity.Core.Metadata.Edm.EdmModel

The EdmModel to serialize.

provider
Type: System.String

The provider information on the schema element.

providerManifestToken
Type: System.String

The ProviderManifestToken information on the schema element.

xmlWriter
Type: System.Xml.XmlWriter

The XmlWriter to serialize to.

serializeDefaultNullability
Type: System.Boolean

A value indicating whether to serialize nullable attributes when they are set to the default value.

Return Value

Type: System.Boolean

true if model can be serialized; otherwise, false.