SsdlSerializer.Serialize 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.
Overloads
Serialize(EdmModel, String, String, XmlWriter, Boolean) | |
Serialize(EdmModel, String, String, String, XmlWriter, Boolean) |
Serialize(EdmModel, String, String, XmlWriter, Boolean)
[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)
[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
Entity Framework