SsdlSerializer.Serialize Method
Namespace:
System.Data.Entity.Core.Metadata.Edm
Assembly: EntityFramework (in EntityFramework.dll)
Assembly: EntityFramework (in EntityFramework.dll)
SsdlSerializer.Serialize Method (EdmModel, String, String, String, XmlWriter, Boolean)
[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")] [SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Nullability")] public virtual bool Serialize( EdmModel dbDatabase, string namespaceName, string provider, string providerManifestToken, XmlWriter xmlWriter, bool serializeDefaultNullability = true )
Parameters
- dbDatabase
-
Type:
System.Data.Entity.Core.Metadata.Edm.EdmModel
The EdmModel to serialize.
- namespaceName
-
Type:
System.String
The namespace name on the schema element.
- provider
-
Type:
System.String
The provider information on the schema element.
- providerManifestToken
-
Type:
System.String
The ProviderManifestToken information on the schema element.
- xmlWriter
-
Type:
System.Xml.XmlWriter
The XmlWriter to serialize to.
- serializeDefaultNullability
-
Type:
System.Boolean
A value indicating whether to serialize nullable attributes when they are set to the default value.
SsdlSerializer.Serialize Method (EdmModel, String, String, XmlWriter, Boolean)
[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")] [SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Nullability")] public virtual bool Serialize( EdmModel dbDatabase, string provider, string providerManifestToken, XmlWriter xmlWriter, bool serializeDefaultNullability = true )
Parameters
- dbDatabase
-
Type:
System.Data.Entity.Core.Metadata.Edm.EdmModel
The EdmModel to serialize.
- provider
-
Type:
System.String
The provider information on the schema element.
- providerManifestToken
-
Type:
System.String
The ProviderManifestToken information on the schema element.
- xmlWriter
-
Type:
System.Xml.XmlWriter
The XmlWriter to serialize to.
- serializeDefaultNullability
-
Type:
System.Boolean
A value indicating whether to serialize nullable attributes when they are set to the default value.