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._Color = binStream.ReadString();
            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();
            }

            Groups_was_eagerLoaded = binStream.ReadBoolean();
            this._fk_Module = binStream.ReadNullableInt32();
            this._fk_Parent = binStream.ReadNullableInt32();
            this._Children_pos = binStream.ReadNullableInt32();
            this._fk_RequestedKind = binStream.ReadNullableInt32();
            this._Title = binStream.ReadString();
            this._fk_ViewModelDescriptor = binStream.ReadNullableInt32();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result);
        }
        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._CategoryTags = binStream.ReadString();
            binStream.Read(out this._fk_ChangedBy);
            this._isChangedOnSet = binStream.ReadBoolean();
            if (this._isChangedOnSet) {
                this._ChangedOn = binStream.ReadDateTime();
            }
            this._CodeTemplate = binStream.ReadString();

            Constraints_was_eagerLoaded = binStream.ReadBoolean();
            {
                bool containsList = binStream.ReadBoolean();
                if (containsList)
                {
                    int numElements = binStream.ReadInt32();
                    ConstraintsIds = new List<int>(numElements);
                    while (numElements-- > 0) 
                    {
                        int id = binStream.ReadInt32();
                        ConstraintsIds.Add(id);
                    }
                }
            }
            binStream.Read(out this._fk_CreatedBy);
            this._isCreatedOnSet = binStream.ReadBoolean();
            if (this._isCreatedOnSet) {
                this._CreatedOn = binStream.ReadDateTime();
            }
            binStream.Read(out this._fk_DefaultValue);
            this._Description = binStream.ReadString();
            this._DisableExport = binStream.ReadNullableBoolean();
            this._isExportGuidSet = binStream.ReadBoolean();
            if (this._isExportGuidSet) {
                this._ExportGuid = binStream.ReadGuid();
            }
            binStream.Read(out this._fk_FilterConfiguration);
            this._Label = binStream.ReadString();
            binStream.Read(out this._fk_Module);
            this._Name = binStream.ReadString();
            binStream.Read(out this._fk_ObjectClass);
            this._Properties_pos = binStream.ReadNullableInt32();
            binStream.Read(out this._fk_RequestedKind);
            ((Zetbox.App.Base.Property)this).RequestedWidth = (Zetbox.App.GUI.WidthHint?)binStream.ReadNullableInt32();
            binStream.Read(out this._fk_ValueModelDescriptor);
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result);
        }
 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._ChangedOn = binStream.ReadDateTime();
     }
     binStream.Read(out this._fk_CreatedBy);
     this._isCreatedOnSet = binStream.ReadBoolean();
     if (this._isCreatedOnSet) {
         this._CreatedOn = binStream.ReadDateTime();
     }
     _DeploymentRestriction = (Zetbox.App.Base.DeploymentRestriction?)binStream.ReadNullableInt32();
     this._Description = binStream.ReadString();
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     binStream.Read(out this._fk_Module);
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
 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._Destination = binStream.ReadString();
     this._DestinationRows = binStream.ReadInt32();
     this._Source = binStream.ReadString();
     this._SourceRows = binStream.ReadInt32();
     this._Timestamp = binStream.ReadDateTime();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
        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._Comment = binStream.ReadString();
            this._isCompareNullsSet = binStream.ReadBoolean();
            if (this._isCompareNullsSet) {
                this._CompareNulls = binStream.ReadBoolean();
            }
            this._fk_CreatedBy = binStream.ReadNullableInt32();
            this._isCreatedOnSet = binStream.ReadBoolean();
            if (this._isCreatedOnSet) {
                this._CreatedOn = binStream.ReadDateTime();
            }
            ((Zetbox.App.SchemaMigration.SourceColumn)this).DbType = (Zetbox.App.SchemaMigration.ColumnType)binStream.ReadNullableInt32();
            this._Description = binStream.ReadString();

            DestinationProperty_was_eagerLoaded = binStream.ReadBoolean();
            this._isExportGuidSet = binStream.ReadBoolean();
            if (this._isExportGuidSet) {
                this._ExportGuid = binStream.ReadGuid();
            }
            this._IsNullable = binStream.ReadNullableBoolean();
            this._Name = binStream.ReadString();
            this._fk_References = binStream.ReadNullableInt32();
            this._Size = binStream.ReadNullableInt32();
            this._fk_SourceTable = binStream.ReadNullableInt32();
            ((Zetbox.App.SchemaMigration.SourceColumn)this).Status = (Zetbox.App.SchemaMigration.MappingStatus?)binStream.ReadNullableInt32();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result);
        }
 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._Nullable = binStream.ReadNullableDateTime();
     this._isNullableWithDefaultSet = binStream.ReadBoolean();
     if (this._isNullableWithDefaultSet) {
         this._NullableWithDefault = binStream.ReadNullableDateTime();
     }
     this._Standard = binStream.ReadDateTime();
     this._isStandardWithDefaultSet = binStream.ReadBoolean();
     if (this._isStandardWithDefaultSet) {
         this._StandardWithDefault = binStream.ReadDateTime();
     }
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
        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_Assembly);
            binStream.Read(out this._fk_ChangedBy);
            this._isChangedOnSet = binStream.ReadBoolean();
            if (this._isChangedOnSet) {
                this._ChangedOn = binStream.ReadDateTime();
            }
            binStream.Read(out this._fk_CreatedBy);
            this._isCreatedOnSet = binStream.ReadBoolean();
            if (this._isCreatedOnSet) {
                this._CreatedOn = binStream.ReadDateTime();
            }
            this._Deleted = binStream.ReadNullableBoolean();
            this._isExportGuidSet = binStream.ReadBoolean();
            if (this._isExportGuidSet) {
                this._ExportGuid = binStream.ReadGuid();
            }
            this._FullName = binStream.ReadString();

            GenericArguments_was_eagerLoaded = binStream.ReadBoolean();
            binStream.Read(out this._fk_Parent);
            this._ToStringCache = binStream.ReadString();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result);
        }
        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._ChangedOn = binStream.ReadDateTime();
            }

            Constraints_was_eagerLoaded = binStream.ReadBoolean();
            {
                bool containsList = binStream.ReadBoolean();
                if (containsList)
                {
                    int numElements = binStream.ReadInt32();
                    ConstraintsIds = new List<int>(numElements);
                    while (numElements-- > 0) 
                    {
                        int id = binStream.ReadInt32();
                        ConstraintsIds.Add(id);
                    }
                }
            }
            binStream.Read(out this._fk_CreatedBy);
            this._isCreatedOnSet = binStream.ReadBoolean();
            if (this._isCreatedOnSet) {
                this._CreatedOn = binStream.ReadDateTime();
            }
            binStream.Read(out this._fk_DefaultIcon);
            this._Description = binStream.ReadString();
            this._isExportGuidSet = binStream.ReadBoolean();
            if (this._isExportGuidSet) {
                this._ExportGuid = binStream.ReadGuid();
            }

            Methods_was_eagerLoaded = binStream.ReadBoolean();
            {
                bool containsList = binStream.ReadBoolean();
                if (containsList)
                {
                    int numElements = binStream.ReadInt32();
                    MethodsIds = new List<int>(numElements);
                    while (numElements-- > 0) 
                    {
                        int id = binStream.ReadInt32();
                        MethodsIds.Add(id);
                    }
                }
            }
            binStream.Read(out this._fk_Module);
            this._Name = binStream.ReadString();

            Properties_was_eagerLoaded = binStream.ReadBoolean();
            {
                bool containsList = binStream.ReadBoolean();
                if (containsList)
                {
                    int numElements = binStream.ReadInt32();
                    PropertiesIds = new List<int>(numElements);
                    while (numElements-- > 0) 
                    {
                        int id = binStream.ReadInt32();
                        PropertiesIds.Add(id);
                    }
                }
            }
            binStream.Read(out this._fk_RequestedKind);
            this._isShowIconInListsSet = binStream.ReadBoolean();
            if (this._isShowIconInListsSet) {
                this._ShowIconInLists = binStream.ReadBoolean();
            }
            this._isShowIdInListsSet = binStream.ReadBoolean();
            if (this._isShowIdInListsSet) {
                this._ShowIdInLists = binStream.ReadBoolean();
            }
            this._isShowNameInListsSet = binStream.ReadBoolean();
            if (this._isShowNameInListsSet) {
                this._ShowNameInLists = binStream.ReadBoolean();
            }
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result);
        }
 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._ChangedOn = binStream.ReadDateTime();
     }
     binStream.Read(out this._fk_CreatedBy);
     this._isCreatedOnSet = binStream.ReadBoolean();
     if (this._isCreatedOnSet) {
         this._CreatedOn = binStream.ReadDateTime();
     }
     binStream.Read(out this._fk_Identity);
     this._Name = binStream.ReadString();
     binStream.Read(out this._fk_Parent);
     this._ParentName = binStream.ReadString();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
 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._ChangedOn = binStream.ReadDateTime();
     }
     this._Comment = binStream.ReadString();
     binStream.Read(out this._fk_CreatedBy);
     this._isCreatedOnSet = binStream.ReadBoolean();
     if (this._isCreatedOnSet) {
         this._CreatedOn = binStream.ReadDateTime();
     }
     this._Description = binStream.ReadString();
     binStream.Read(out this._fk_DestinationObjectClass);
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     this._Name = binStream.ReadString();
     binStream.Read(out this._fk_StagingDatabase);
     _Status = (Zetbox.App.SchemaMigration.MappingStatus?)binStream.ReadNullableInt32();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
 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._CategoryTags = binStream.ReadString();
     this._fk_ChangedBy = binStream.ReadNullableInt32();
     this._isChangedOnSet = binStream.ReadBoolean();
     if (this._isChangedOnSet) {
         this._ChangedOn = binStream.ReadDateTime();
     }
     this._CodeTemplate = binStream.ReadString();
     this._fk_CreatedBy = binStream.ReadNullableInt32();
     this._isCreatedOnSet = binStream.ReadBoolean();
     if (this._isCreatedOnSet) {
         this._CreatedOn = binStream.ReadDateTime();
     }
     this._Description = binStream.ReadString();
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     this._HelpText = binStream.ReadString();
     this._fk_Icon = binStream.ReadNullableInt32();
     this._InvokeOnServer = binStream.ReadNullableBoolean();
     this._IsDisplayable = binStream.ReadBoolean();
     this._Label = binStream.ReadString();
     this._fk_Module = binStream.ReadNullableInt32();
     this._Name = binStream.ReadString();
     this._fk_ObjectClass = binStream.ReadNullableInt32();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
 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._Adresse = binStream.ReadString();
     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();
     }
     binStream.ReadCollectionEntries(this, this._EMailsCollection);
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     this._Kundenname = binStream.ReadString();
     this._Land = binStream.ReadString();
     this._Ort = binStream.ReadString();
     this._PLZ = binStream.ReadString();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
Exemple #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) {
     this._Body = binStream.ReadString();
     binStream.Read(out this._fk_Calendar);
     binStream.Read(out this._fk_ChangedBy);
     this._isChangedOnSet = binStream.ReadBoolean();
     if (this._isChangedOnSet) {
         this._ChangedOn = binStream.ReadDateTime();
     }
     binStream.Read(out this._fk_CreatedBy);
     this._isCreatedOnSet = binStream.ReadBoolean();
     if (this._isCreatedOnSet) {
         this._CreatedOn = binStream.ReadDateTime();
     }
     this._EndDate = binStream.ReadDateTime();
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     this._isIsAllDaySet = binStream.ReadBoolean();
     if (this._isIsAllDaySet) {
         this._IsAllDay = binStream.ReadBoolean();
     }
     this._isIsViewReadOnlySet = binStream.ReadBoolean();
     if (this._isIsViewReadOnlySet) {
         this._IsViewReadOnly = binStream.ReadBoolean();
     }
     this._Location = binStream.ReadString();
     {
         // use backing store to avoid notifications
         this.RecurrenceImpl = binStream.ReadCompoundObject<Zetbox.App.Base.RecurrenceRuleEfImpl>();
         this.RecurrenceImpl.AttachToObject(this, "Recurrence");
     }
     {
         // use backing store to avoid notifications
         this.SourceImpl = binStream.ReadCompoundObject<Zetbox.App.Base.AnyReferenceEfImpl>();
         this.SourceImpl.AttachToObject(this, "Source");
     }
     this._StartDate = binStream.ReadDateTime();
     this._Summary = binStream.ReadString();
     this._SyncHash = binStream.ReadString();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
 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._ChangedOn = binStream.ReadDateTime();
     }
     binStream.Read(out this._fk_CreatedBy);
     this._isCreatedOnSet = binStream.ReadBoolean();
     if (this._isCreatedOnSet) {
         this._CreatedOn = binStream.ReadDateTime();
     }
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     this._Label = binStream.ReadString();
     binStream.Read(out this._fk_Module);
     this._RefreshOnFilterChanged = binStream.ReadNullableBoolean();
     binStream.Read(out this._fk_RequestedKind);
     this._Required = binStream.ReadBoolean();
     binStream.Read(out this._fk_ViewModelDescriptor);
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
 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._ChangedOn = binStream.ReadDateTime();
     }
     binStream.Read(out this._fk_CreatedBy);
     this._isCreatedOnSet = binStream.ReadBoolean();
     if (this._isCreatedOnSet) {
         this._CreatedOn = binStream.ReadDateTime();
     }
     this._Description = binStream.ReadString();
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     this._HelpText = binStream.ReadString();
     this._IsList = binStream.ReadBoolean();
     this._isIsNullableSet = binStream.ReadBoolean();
     if (this._isIsNullableSet) {
         this._IsNullable = binStream.ReadBoolean();
     }
     this._IsReturnParameter = binStream.ReadBoolean();
     this._Label = binStream.ReadString();
     binStream.Read(out this._fk_Method);
     this._Parameter_pos = binStream.ReadNullableInt32();
     this._Name = binStream.ReadString();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
Exemple #16
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.AttachedToImpl = binStream.ReadCompoundObject<Zetbox.App.Base.AnyReferenceMemoryImpl>();
         this.AttachedToImpl.AttachToObject(this, "AttachedTo");
     }
     this._fk_Blob = binStream.ReadNullableInt32();
     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._fk_Excerpt = binStream.ReadNullableInt32();
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     this._isIsFileReadonlySet = binStream.ReadBoolean();
     if (this._isIsFileReadonlySet) {
         this._IsFileReadonly = binStream.ReadBoolean();
     }
     this._isKeepRevisionsSet = binStream.ReadBoolean();
     if (this._isKeepRevisionsSet) {
         this._KeepRevisions = binStream.ReadBoolean();
     }
     this._Name = binStream.ReadString();
     this._Tags = binStream.ReadString();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
 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_AParent = binStream.ReadNullableInt32();
     this._fk_BParent = binStream.ReadNullableInt32();
     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._isHasPersistentOrderSet = binStream.ReadBoolean();
     if (this._isHasPersistentOrderSet) {
         this._HasPersistentOrder = binStream.ReadBoolean();
     }
     this._Multiplicity = (Zetbox.App.Base.Multiplicity)binStream.ReadNullableInt32();
     this._fk_Navigator = binStream.ReadNullableInt32();
     this._RoleName = binStream.ReadString();
     this._fk_Type = binStream.ReadNullableInt32();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
 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_Calendar);
     binStream.Read(out this._fk_ChangedBy);
     this._isChangedOnSet = binStream.ReadBoolean();
     if (this._isChangedOnSet) {
         this._ChangedOn = binStream.ReadDateTime();
     }
     binStream.Read(out this._fk_CreatedBy);
     this._isCreatedOnSet = binStream.ReadBoolean();
     if (this._isCreatedOnSet) {
         this._CreatedOn = binStream.ReadDateTime();
     }
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     this._isIsWorkingDaySet = binStream.ReadBoolean();
     if (this._isIsWorkingDaySet) {
         this._IsWorkingDay = binStream.ReadBoolean();
     }
     binStream.Read(out this._fk_Module);
     this._Name = binStream.ReadString();
     this._ValidFrom = binStream.ReadNullableDateTime();
     this._ValidUntil = binStream.ReadNullableDateTime();
     this._WorkingHours = binStream.ReadDecimal();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
 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._Aufwand = binStream.ReadNullableDouble();
     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._DatumBis = binStream.ReadNullableDateTime();
     this._DatumVon = binStream.ReadDateTime();
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     this._Name = binStream.ReadString();
     this._fk_Projekt = binStream.ReadNullableInt32();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
 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_A = binStream.ReadNullableInt32();
     this._fk_B = binStream.ReadNullableInt32();
     this._fk_ChangedBy = binStream.ReadNullableInt32();
     this._isChangedOnSet = binStream.ReadBoolean();
     if (this._isChangedOnSet) {
         this._ChangedOn = binStream.ReadDateTime();
     }
     ((Zetbox.App.Base.Relation)this).Containment = (Zetbox.App.Base.ContainmentSpecification)binStream.ReadNullableInt32();
     this._fk_CreatedBy = binStream.ReadNullableInt32();
     this._isCreatedOnSet = binStream.ReadBoolean();
     if (this._isCreatedOnSet) {
         this._CreatedOn = binStream.ReadDateTime();
     }
     this._Description = binStream.ReadString();
     this._isExportGuidSet = binStream.ReadBoolean();
     if (this._isExportGuidSet) {
         this._ExportGuid = binStream.ReadGuid();
     }
     this._fk_Module = binStream.ReadNullableInt32();
     ((Zetbox.App.Base.Relation)this).Storage = (Zetbox.App.Base.StorageType)binStream.ReadNullableInt32();
     this._Verb = binStream.ReadString();
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }