Esempio n. 1
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this._fk_ChangedBy   = binStream.ReadNullableInt32();
                this._isChangedOnSet = binStream.ReadBoolean();
                if (this._isChangedOnSet)
                {
                    this._ChangedOn = binStream.ReadDateTime();
                }
                this._fk_CreatedBy   = binStream.ReadNullableInt32();
                this._isCreatedOnSet = binStream.ReadBoolean();
                if (this._isCreatedOnSet)
                {
                    this._CreatedOn = binStream.ReadDateTime();
                }
                this._isExportGuidSet = binStream.ReadBoolean();
                if (this._isExportGuidSet)
                {
                    this._ExportGuid = binStream.ReadGuid();
                }
                this._fk_Identity     = binStream.ReadNullableInt32();
                this._MachineName     = binStream.ReadString();
                this._PickupDirectory = binStream.ReadString();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 2
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                binStream.Read(out this._fk_ChangedBy);
                this._isChangedOnSet = binStream.ReadBoolean();
                if (this._isChangedOnSet)
                {
                    this.Proxy.ChangedOn = binStream.ReadDateTime();
                }
                binStream.Read(out this._fk_CreatedBy);
                this._isCreatedOnSet = binStream.ReadBoolean();
                if (this._isCreatedOnSet)
                {
                    this.Proxy.CreatedOn = binStream.ReadDateTime();
                }
                this._isExportGuidSet = binStream.ReadBoolean();
                if (this._isExportGuidSet)
                {
                    this.Proxy.ExportGuid = binStream.ReadGuid();
                }
                binStream.Read(out this._fk_Property);
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 3
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this._fk_ControlKind  = binStream.ReadNullableInt32();
                this._fk_ControlRef   = binStream.ReadNullableInt32();
                this._isExportGuidSet = binStream.ReadBoolean();
                if (this._isExportGuidSet)
                {
                    this._ExportGuid = binStream.ReadGuid();
                }
                this._fk_Module = binStream.ReadNullableInt32();

                SupportedViewModels_was_eagerLoaded            = binStream.ReadBoolean();
                ((Zetbox.App.GUI.ViewDescriptor) this).Toolkit = (Zetbox.App.GUI.Toolkit)binStream.ReadNullableInt32();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 4
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                Antworten_was_eagerLoaded = binStream.ReadBoolean();
                {
                    bool containsList = binStream.ReadBoolean();
                    if (containsList)
                    {
                        int numElements = binStream.ReadInt32();
                        AntwortenIds = new List <int>(numElements);
                        while (numElements-- > 0)
                        {
                            int id = binStream.ReadInt32();
                            AntwortenIds.Add(id);
                        }
                    }
                }
                this._BogenNummer = binStream.ReadNullableInt32();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 5
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                {
                    // use backing store to avoid notifications
                    this.AnyImpl = binStream.ReadCompoundObject <Zetbox.App.Base.AnyReferenceEfImpl>();
                    this.AnyImpl.AttachToObject(this, "Any");
                }
                this._DisplayName     = binStream.ReadString();
                this._isExportGuidSet = binStream.ReadBoolean();
                if (this._isExportGuidSet)
                {
                    this._ExportGuid = binStream.ReadGuid();
                }
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 6
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this._Identity       = binStream.ReadString();
                this._MessageFormat  = binStream.ReadString();
                this._NewValue       = binStream.ReadString();
                this._OldValue       = binStream.ReadString();
                this._PropertyName   = binStream.ReadString();
                this._isTimestampSet = binStream.ReadBoolean();
                if (this._isTimestampSet)
                {
                    this._Timestamp = binStream.ReadNullableDateTime();
                }
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 7
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                binStream.Read(out this._fk_CompoundObjectDefinition);
                this.Proxy.HasPersistentOrder = binStream.ReadBoolean();
                this.Proxy.IsList             = binStream.ReadBoolean();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 8
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this._isIsUniqueSet = binStream.ReadBoolean();
                if (this._isIsUniqueSet)
                {
                    this._IsUnique = binStream.ReadBoolean();
                }
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 9
0
        internal SerializableCompoundExpression(ZetboxStreamReader binReader, StreamSerializationContext ctx, InterfaceType.Factory iftFactory)
            : base(binReader, ctx, iftFactory)
        {
            var children = new List <SerializableExpression>();

            while (binReader.ReadBoolean())
            {
                children.Add(SerializableExpression.FromStream(binReader, ctx, iftFactory));
            }
            this.Children = children.ToArray();
        }
Esempio n. 10
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this._HasPersistentOrder  = binStream.ReadBoolean();
                this._ImplementorRoleName = binStream.ReadString();
                this._IsList                   = binStream.ReadBoolean();
                this._ItemRoleName             = binStream.ReadString();
                this._fk_ReferencedObjectClass = binStream.ReadNullableInt32();
                this._Verb = binStream.ReadString();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 11
0
        internal SerializableNewExpression(ZetboxStreamReader binReader, StreamSerializationContext ctx, InterfaceType.Factory iftFactory)
            : base(binReader, ctx, iftFactory)
        {
            Constructor = (SerializableConstructorInfo)SerializableMemberInfo.FromStream(binReader);

            var members = new List <SerializableMemberInfo>();

            while (binReader.ReadBoolean())
            {
                members.Add(SerializableMemberInfo.FromStream(binReader));
            }
            this.Members = members.ToArray();
        }
Esempio n. 12
0
        internal SerializableMethodCallExpression(ZetboxStreamReader binReader, StreamSerializationContext ctx, InterfaceType.Factory iftFactory)
            : base(binReader, ctx, iftFactory)
        {
            var hasObject = binReader.ReadBoolean();

            if (hasObject)
            {
                ObjectExpression = SerializableExpression.FromStream(binReader, ctx, iftFactory);
            }

            MethodName             = binReader.ReadString();
            SerializableMethodType = binReader.ReadSerializableType();
            ParameterTypes         = ReadTypeArray(binReader);
            GenericArguments       = ReadTypeArray(binReader);
        }
Esempio n. 13
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                Inputs_was_eagerLoaded = binStream.ReadBoolean();
                binStream.Read(out this._fk_ReferencedClass);
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 14
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this.Proxy.EagerLoading     = binStream.ReadBoolean();
                this.Proxy.IsInlineEditable = binStream.ReadNullableBoolean();
                binStream.Read(out this._fk_RelationEnd);
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 15
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this._isExportGuidSet = binStream.ReadBoolean();
                if (this._isExportGuidSet)
                {
                    this._ExportGuid = binStream.ReadGuid();
                }
                binStream.Read(out this._fk_Implementor);
                this._MemberName = binStream.ReadString();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }