Condividi tramite


SsdlSerializer.Serialize Metodo

Definizione

Overload

Serialize(EdmModel, String, String, XmlWriter, Boolean)

Serializzare l'oggetto EdmModel in XmlWriter

Serialize(EdmModel, String, String, String, XmlWriter, Boolean)

Serializzare l'oggetto EdmModel in XmlWriter

Serialize(EdmModel, String, String, XmlWriter, Boolean)

Serializzare l'oggetto EdmModel in XmlWriter

[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

Parametri

dbDatabase
EdmModel

EdmModel da serializzare

provider
String

Informazioni sul provider sull'elemento Schema

providerManifestToken
String

Informazioni su ProviderManifestToken sull'elemento Schema

xmlWriter
XmlWriter

XmlWriter da serializzare a

serializeDefaultNullability
Boolean

Valore che indica se serializzare gli attributi Nullable quando vengono impostati sul valore predefinito.

Restituisce

true se il modello può essere serializzato, in caso contrario false

Attributi

Si applica a

Serialize(EdmModel, String, String, String, XmlWriter, Boolean)

Serializzare l'oggetto EdmModel in XmlWriter

[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

Parametri

dbDatabase
EdmModel

EdmModel da serializzare

namespaceName
String

Nome dello spazio dei nomi nell'elemento Schema

provider
String

Informazioni sul provider sull'elemento Schema

providerManifestToken
String

Informazioni su ProviderManifestToken sull'elemento Schema

xmlWriter
XmlWriter

XmlWriter da serializzare a

serializeDefaultNullability
Boolean

Valore che indica se serializzare gli attributi Nullable quando vengono impostati sul valore predefinito.

Restituisce

true se il modello può essere serializzato, in caso contrario false

Attributi

Si applica a