Share via


CsdlSerializer.Serialize(EdmModel, XmlWriter, String) Method

Definition

Serialize the EdmModel to the XmlWriter.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool Serialize (System.Data.Entity.Core.Metadata.Edm.EdmModel model, System.Xml.XmlWriter xmlWriter, string modelNamespace = null);
member this.Serialize : System.Data.Entity.Core.Metadata.Edm.EdmModel * System.Xml.XmlWriter * string -> bool

Parameters

model
EdmModel

The EdmModel to serialize.

xmlWriter
XmlWriter

The XmlWriter to serialize to.

modelNamespace
String

The serialized model's namespace.

Returns

true if the model is valid; otherwise, false.

Attributes

Applies to