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._isEagerLoadingSet = binStream.ReadBoolean();
     if (this._isEagerLoadingSet) {
         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);
 }
 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._IsCurrentYearDefault = binStream.ReadNullableBoolean();
     } // 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);
        }
Exemple #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) {
     this._TestBool = binStream.ReadNullableBoolean();
     binStream.Read(out this._fk_TestCustomObjects_Nav);
     binStream.Read(out this._fk_TestCustomObjects_One_Nav);
     this._TestDateTime = binStream.ReadNullableDateTime();
     _TestEnum = (Zetbox.App.Test.TestEnum)binStream.ReadNullableInt32();
     this._TestString = 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_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._AllowAddNew = binStream.ReadNullableBoolean();
     this._AllowDelete = binStream.ReadNullableBoolean();
     this._AllowSelectColumns = binStream.ReadNullableBoolean();
     this._AllowUserFilter = binStream.ReadNullableBoolean();
     this._EnableAutoFilter = binStream.ReadNullableBoolean();
     this._InitialSort = binStream.ReadString();
     ((Zetbox.App.GUI.NavigationSearchScreen)this).InitialSortDirection = (Zetbox.App.GUI.ListSortDirection?)binStream.ReadNullableInt32();
     this._IsEditable = binStream.ReadNullableBoolean();
     this._IsMultiselect = binStream.ReadNullableBoolean();
     this._fk_RequestedEditorKind = binStream.ReadNullableInt32();
     this._fk_RequestedWorkspaceKind = binStream.ReadNullableInt32();
     this._RespectRequiredFilter = binStream.ReadNullableBoolean();
     this._ShowFilter = binStream.ReadNullableBoolean();
     this._ShowMasterDetail = binStream.ReadNullableBoolean();
     this._ShowOpenCommand = binStream.ReadNullableBoolean();
     this._ShowRefreshCommand = binStream.ReadNullableBoolean();
     this._fk_Type = binStream.ReadNullableInt32();
     ((Zetbox.App.GUI.NavigationSearchScreen)this).ViewMethod = (Zetbox.App.GUI.InstanceListViewMethod?)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) {
     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_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);
        }