Beispiel #1
0
 public override void MergeImport(System.Xml.XmlReader xml)
 {
     base.MergeImport(xml);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     switch (xml.NamespaceURI + "|" + xml.LocalName)
     {
     case "Zetbox.App.Base|IntValue":
         this.Proxy.IntValue = XmlStreamer.ReadInt32(xml);
         break;
     }
 }
Beispiel #2
0
        public override IEnumerable <IPersistenceObject> FromStream(System.Xml.XmlReader xml)
        {
            var baseResult = base.FromStream(xml);

            switch (xml.NamespaceURI + "|" + xml.LocalName)
            {
            case "Zetbox.App.Test|MyIntProperty":
                this._MyIntProperty = XmlStreamer.ReadNullableInt32(xml);
                break;

            case "http://dasz.at/Zetbox|ObjectProp":
                this._fk_ObjectProp = XmlStreamer.ReadNullableInt32(xml);
                break;

            case "Zetbox.App.Test|StringProp":
                this._StringProp = XmlStreamer.ReadString(xml);
                break;

            case "Zetbox.App.Test|TestEnumProp":
                this.TestEnumProp = (Zetbox.App.Test.TestEnum)XmlStreamer.ReadInt32(xml);
                break;
            }
            return(baseResult);
        }