public override void ToStream(Zetbox.API.ZetboxStreamWriter binStream, HashSet <IStreamable> auxObjects, bool eagerLoadLists) { base.ToStream(binStream, auxObjects, eagerLoadLists); // it may be only an empty shell to stand-in for unreadable data if (!CurrentAccessRights.HasReadRights()) { return; } binStream.Write(this.Proxy.ChangedBy != null ? OurContext.GetIdFromProxy(this.Proxy.ChangedBy) : (int?)null); binStream.Write(this._isChangedOnSet); if (this._isChangedOnSet) { binStream.Write(this.Proxy.ChangedOn); } binStream.Write(this.Proxy.CreatedBy != null ? OurContext.GetIdFromProxy(this.Proxy.CreatedBy) : (int?)null); binStream.Write(this._isCreatedOnSet); if (this._isCreatedOnSet) { binStream.Write(this.Proxy.CreatedOn); } binStream.Write(this._isExportGuidSet); if (this._isExportGuidSet) { binStream.Write(this.Proxy.ExportGuid); } binStream.Write(this.Proxy.Property != null ? OurContext.GetIdFromProxy(this.Proxy.Property) : (int?)null); }
public override void ToStream(Zetbox.API.ZetboxStreamWriter binStream, HashSet <IStreamable> auxObjects, bool eagerLoadLists) { base.ToStream(binStream, auxObjects, eagerLoadLists); // it may be only an empty shell to stand-in for unreadable data if (!CurrentAccessRights.HasReadRights()) { return; } binStream.Write(this.Proxy.ControlKind != null ? OurContext.GetIdFromProxy(this.Proxy.ControlKind) : (int?)null); binStream.Write(this.Proxy.ControlRef != null ? OurContext.GetIdFromProxy(this.Proxy.ControlRef) : (int?)null); binStream.Write(this._isExportGuidSet); if (this._isExportGuidSet) { binStream.Write(this.Proxy.ExportGuid); } binStream.Write(this.Proxy.Module != null ? OurContext.GetIdFromProxy(this.Proxy.Module) : (int?)null); binStream.Write(eagerLoadLists); if (eagerLoadLists && auxObjects != null) { foreach (var obj in SupportedViewModels) { auxObjects.Add(obj); } foreach (var relEntry in this.Proxy.SupportedViewModels) { auxObjects.Add(OurContext.AttachAndWrap(relEntry)); } } binStream.Write((int?)Proxy.Toolkit); }
public override void ToStream(Zetbox.API.ZetboxStreamWriter binStream, HashSet <IStreamable> auxObjects, bool eagerLoadLists) { base.ToStream(binStream, auxObjects, eagerLoadLists); // it may be only an empty shell to stand-in for unreadable data if (!CurrentAccessRights.HasReadRights()) { return; } binStream.Write(this.Proxy.Enumeration != null ? OurContext.GetIdFromProxy(this.Proxy.Enumeration) : (int?)null); }
public override void ToStream(Zetbox.API.ZetboxStreamWriter binStream, HashSet <IStreamable> auxObjects, bool eagerLoadLists) { base.ToStream(binStream, auxObjects, eagerLoadLists); // it may be only an empty shell to stand-in for unreadable data if (!CurrentAccessRights.HasReadRights()) { return; } binStream.Write(this.Proxy.DisplayedTypeAssembly != null ? OurContext.GetIdFromProxy(this.Proxy.DisplayedTypeAssembly) : (int?)null); binStream.Write(this.Proxy.DisplayedTypeFullName); binStream.Write(this.Proxy.DisplayName); binStream.Write(this.Proxy.VisualTree != null ? OurContext.GetIdFromProxy(this.Proxy.VisualTree) : (int?)null); }
public override void ToStream(Zetbox.API.ZetboxStreamWriter binStream, HashSet <IStreamable> auxObjects, bool eagerLoadLists) { base.ToStream(binStream, auxObjects, eagerLoadLists); // it may be only an empty shell to stand-in for unreadable data if (!CurrentAccessRights.HasReadRights()) { return; } binStream.Write(this.Proxy.TestBool); binStream.Write(this.Proxy.TestCustomObjects_Nav != null ? OurContext.GetIdFromProxy(this.Proxy.TestCustomObjects_Nav) : (int?)null); binStream.Write(this.Proxy.TestCustomObjects_One_Nav != null ? OurContext.GetIdFromProxy(this.Proxy.TestCustomObjects_One_Nav) : (int?)null); binStream.Write(this.Proxy.TestDateTime); binStream.Write((int?)Proxy.TestEnum); binStream.Write(this.Proxy.TestString); }
public override void ToStream(Zetbox.API.ZetboxStreamWriter binStream, HashSet <IStreamable> auxObjects, bool eagerLoadLists) { base.ToStream(binStream, auxObjects, eagerLoadLists); // it may be only an empty shell to stand-in for unreadable data if (!CurrentAccessRights.HasReadRights()) { return; } binStream.Write(eagerLoadLists); if (eagerLoadLists && auxObjects != null) { foreach (var obj in Inputs) { auxObjects.Add(obj); } foreach (var relEntry in this.Proxy.Inputs) { auxObjects.Add(OurContext.AttachAndWrap(relEntry)); } } binStream.Write(this.Proxy.ReferencedClass != null ? OurContext.GetIdFromProxy(this.Proxy.ReferencedClass) : (int?)null); }