CsdlSerializer.Serialize(EdmModel, XmlWriter, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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