CsdlSerializer.Serialize Method (EdmModel, XmlWriter, String)

 

Serialize the EdmModel to the XmlWriter.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool Serialize(
	EdmModel model,
	XmlWriter xmlWriter,
	string modelNamespace = null
)

Parameters

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

The EdmModel to serialize.

xmlWriter
Type: System.Xml.XmlWriter

The XmlWriter to serialize to.

modelNamespace
Type: System.String

The serialized model's namespace.

Return Value

Type: System.Boolean

true if the model is valid; otherwise, false.