经过两天修正,足够稳定,发布0204,希望作为LTS版本
大石头 authored at 2020-02-04 22:44:36
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
    }
}