[fix]Config创建默认配置文件的开关Runtime.CreateConfigOnMissing,仅需对自动创建生效,而不应该阻止用户主动Save
智能大石头 authored at 2024-08-09 00:30:41 石头 committed at 2024-08-10 14:22:24
692.00 B
X
using System.Xml;
using System.Xml.Serialization;

namespace XCode.DataAccessLayer
{
    /// <summary>可序列化数据成员</summary>
    abstract class SerializableDataMember : IXmlSerializable
    {
        #region IXmlSerializable 成员
        System.Xml.Schema.XmlSchema IXmlSerializable.GetSchema() { return null; }

        void IXmlSerializable.ReadXml(XmlReader reader)
        {
            ModelHelper.ReadXml(reader, this);

            // 跳过当前节点
            reader.Skip();
        }

        void IXmlSerializable.WriteXml(XmlWriter writer)
        {
            ModelHelper.WriteXml(writer, this);
        }
        #endregion
    }
}