Share via


SsdlSerializer.Serialize Method

Definition

Overloads

Serialize(EdmModel, String, String, XmlWriter, Boolean)

Serialize the EdmModel to the XmlWriter

Serialize(EdmModel, String, String, String, XmlWriter, Boolean)

Serialize the EdmModel to the XmlWriter

Serialize(EdmModel, String, String, XmlWriter, Boolean)

Serialize the EdmModel to the XmlWriter

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Nullability")]
public virtual bool Serialize (System.Data.Entity.Core.Metadata.Edm.EdmModel dbDatabase, string provider, string providerManifestToken, System.Xml.XmlWriter xmlWriter, bool serializeDefaultNullability = true);
abstract member Serialize : System.Data.Entity.Core.Metadata.Edm.EdmModel * string * string * System.Xml.XmlWriter * bool -> bool
override this.Serialize : System.Data.Entity.Core.Metadata.Edm.EdmModel * string * string * System.Xml.XmlWriter * bool -> bool

Parameters

dbDatabase
EdmModel

The EdmModel to serialize

provider
String

Provider information on the Schema element

providerManifestToken
String

ProviderManifestToken information on the Schema element

xmlWriter
XmlWriter

The XmlWriter to serialize to

serializeDefaultNullability
Boolean

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

Returns

true if model can be serialized, otherwise false

Attributes

Applies to

Serialize(EdmModel, String, String, String, XmlWriter, Boolean)

Serialize the EdmModel to the XmlWriter

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Nullability")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public virtual bool Serialize (System.Data.Entity.Core.Metadata.Edm.EdmModel dbDatabase, string namespaceName, string provider, string providerManifestToken, System.Xml.XmlWriter xmlWriter, bool serializeDefaultNullability = true);
abstract member Serialize : System.Data.Entity.Core.Metadata.Edm.EdmModel * string * string * string * System.Xml.XmlWriter * bool -> bool
override this.Serialize : System.Data.Entity.Core.Metadata.Edm.EdmModel * string * string * string * System.Xml.XmlWriter * bool -> bool

Parameters

dbDatabase
EdmModel

The EdmModel to serialize

namespaceName
String

Namespace name on the Schema element

provider
String

Provider information on the Schema element

providerManifestToken
String

ProviderManifestToken information on the Schema element

xmlWriter
XmlWriter

The XmlWriter to serialize to

serializeDefaultNullability
Boolean

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

Returns

true if model can be serialized, otherwise false

Attributes

Applies to