SsdlSerializer.Serialize 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
參數
- dbDatabase
- EdmModel
要序列化的 EdmModel
- provider
- String
Schema 元素的提供者資訊
- providerManifestToken
- String
Schema 元素上的 ProviderManifestToken 資訊
- xmlWriter
- XmlWriter
要序列化為 的 XmlWriter
- serializeDefaultNullability
- Boolean
值,指出當屬性設定為預設值時,是否序列化可為 Null 的屬性。
傳回
如果模型可以序列化,則為 true,否則為 false
- 屬性
適用於
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
參數
- dbDatabase
- EdmModel
要序列化的 EdmModel
- namespaceName
- String
Schema 元素上的命名空間名稱
- provider
- String
Schema 元素的提供者資訊
- providerManifestToken
- String
Schema 元素上的 ProviderManifestToken 資訊
- xmlWriter
- XmlWriter
要序列化為 的 XmlWriter
- serializeDefaultNullability
- Boolean
值,指出當屬性設定為預設值時,是否序列化可為 Null 的屬性。
傳回
如果模型可以序列化,則為 true,否則為 false
- 屬性