SsdlSerializer.Serialize-Methode (EdmModel, String, String, XmlWriter, Boolean)
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Serialisiert das EdmModel in den XmlWriter.
Namespace: System.Data.Entity.Core.Metadata.Edm
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Nullability")> _
Public Overridable Function Serialize ( _
dbDatabase As EdmModel, _
provider As String, _
providerManifestToken As String, _
xmlWriter As XmlWriter, _
serializeDefaultNullability As Boolean _
) As Boolean
'Usage
Dim instance As SsdlSerializer
Dim dbDatabase As EdmModel
Dim provider As String
Dim providerManifestToken As String
Dim xmlWriter As XmlWriter
Dim serializeDefaultNullability As Boolean
Dim returnValue As Boolean
returnValue = instance.Serialize(dbDatabase, _
provider, providerManifestToken, _
xmlWriter, serializeDefaultNullability)
[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
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1026:DefaultParametersShouldNotBeUsed")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"Nullability")]
public:
virtual bool Serialize(
EdmModel^ dbDatabase,
String^ provider,
String^ providerManifestToken,
XmlWriter^ xmlWriter,
bool serializeDefaultNullability
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Nullability")>]
abstract Serialize :
dbDatabase:EdmModel *
provider:string *
providerManifestToken:string *
xmlWriter:XmlWriter *
serializeDefaultNullability:bool -> bool
[<SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Nullability")>]
override Serialize :
dbDatabase:EdmModel *
provider:string *
providerManifestToken:string *
xmlWriter:XmlWriter *
serializeDefaultNullability:bool -> bool
public function Serialize(
dbDatabase : EdmModel,
provider : String,
providerManifestToken : String,
xmlWriter : XmlWriter,
serializeDefaultNullability : boolean
) : boolean
Parameter
- dbDatabase
Typ: System.Data.Entity.Core.Metadata.Edm.EdmModel
Das zu serialisierende EdmModel.
- provider
Typ: System.String
Die Anbieterinformationen zum Schemaelement.
- providerManifestToken
Typ: System.String
Die ProviderManifestToken-Informationen zum Schemaelement.
- xmlWriter
Typ: System.Xml.XmlWriter
Der XmlWriter, zu dem die Serialisierung vorgenommen werden soll.
- serializeDefaultNullability
Typ: System.Boolean
Dieser Wert gibt an, ob Attribute, die NULL-Werte zulassen, serialisiert werden sollen, wenn diese auf den Standardwert gesetzt sind.
Rückgabewert
Typ: System.Boolean
true , wenn model serialisiert werden kann, andernfalls false.