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._SomeInt); }
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; } { var key = this.RelationshipManager.GetRelatedReference <Zetbox.App.Base.ConstraintInvocationEfImpl>("Model.FK_Constraint_invokes_GetErrorTextInvocation", "GetErrorTextInvocation").EntityKey; binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null); } if (auxObjects != null) { auxObjects.Add(GetErrorTextInvocation); } { var key = this.RelationshipManager.GetRelatedReference <Zetbox.App.Base.ConstraintInvocationEfImpl>("Model.FK_Constraint_invokes_IsValidInvocation", "IsValidInvocation").EntityKey; binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null); } if (auxObjects != null) { auxObjects.Add(IsValidInvocation); } }
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(ChangedBy != null ? ChangedBy.ID : (int?)null); binStream.Write(this._isChangedOnSet); if (this._isChangedOnSet) { binStream.Write(this._ChangedOn); } binStream.Write(CreatedBy != null ? CreatedBy.ID : (int?)null); binStream.Write(this._isCreatedOnSet); if (this._isCreatedOnSet) { binStream.Write(this._CreatedOn); } binStream.Write(this._isExportGuidSet); if (this._isExportGuidSet) { binStream.Write(this._ExportGuid); } binStream.Write(Identity != null ? Identity.ID : (int?)null); binStream.Write(this._MachineName); binStream.Write(this._PickupDirectory); }
/// <summary> /// Base method for serializing this Object. /// Serializes a CompoundObject to the specified stream. Since CompoundObject have no /// own identity the ParentObject has to be constructed somewhere else /// using external means, e.g. by examining the position in the stream. /// </summary> /// <param name="sw">Stream to serialize to</param> /// <param name="auxObjects">pass a List here to collect auxiliary, eagerly loaded objects. Ignored if null.</param> /// <param name="eagerLoadLists">True if lists should be eager loaded</param> public virtual void ToStream(ZetboxStreamWriter sw, HashSet <IStreamable> auxObjects, bool eagerLoadLists) { if (sw == null) { throw new ArgumentNullException("sw"); } }
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 InputsImpl) { auxObjects.Add(relEntry); } } { var key = this.RelationshipManager.GetRelatedReference <Zetbox.App.Base.ObjectClassEfImpl>("Model.FK_CalculatedReference_references_ReferencedClass", "ReferencedClass").EntityKey; binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null); } if (auxObjects != null) { auxObjects.Add(ReferencedClass); } }
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(ControlKind != null ? ControlKind.ID : (int?)null); binStream.Write(ControlRef != null ? ControlRef.ID : (int?)null); binStream.Write(this._isExportGuidSet); if (this._isExportGuidSet) { binStream.Write(this._ExportGuid); } binStream.Write(Module != null ? Module.ID : (int?)null); binStream.Write(eagerLoadLists); if (eagerLoadLists && auxObjects != null) { foreach (var obj in SupportedViewModels) { auxObjects.Add(obj); } } binStream.Write((int?)((Zetbox.App.GUI.ViewDescriptor) this).Toolkit); }
internal override void ToStream(ZetboxStreamWriter binStream, StreamSerializationContext ctx) { binStream.Write((byte)SerializableExpressionType.Constant); base.ToStream(binStream, ctx); binStream.Write(Value); }
// END Zetbox.DalProvider.Ef.Generator.Templates.Properties.IdProperty #region Serializer 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) { binStream.Write(true); binStream.Write(Antworten.Count); foreach (var obj in Antworten) { auxObjects.Add(obj); binStream.Write(obj.ID); } } else { binStream.Write(false); } binStream.Write(this._BogenNummer); }
internal override void ToStream(ZetboxStreamWriter binStream, StreamSerializationContext ctx) { binStream.Write((byte)SerializableExpressionType.Conditional); base.ToStream(binStream, ctx); Test.ToStream(binStream, ctx); IfTrue.ToStream(binStream, ctx); IfFalse.ToStream(binStream, ctx); }
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((int?)((Zetbox.App.Calendar.DayOfWeekCalendarRule) this).DayOfWeek); }
/// <summary> /// Base method for serializing this Object. /// </summary> /// <param name="sw">Stream to serialize to</param> /// <param name="auxObjects">pass a List here to collect auxiliary, eagerly loaded objects. Ignored if null.</param> /// <param name="eagerLoadLists">True if Lists should be eager loaded.</param> public virtual void ToStream(ZetboxStreamWriter sw, HashSet <IStreamable> auxObjects, bool eagerLoadLists) { if (sw == null) { throw new ArgumentNullException("sw"); } sw.Write(ReadOnlyContext.GetInterfaceType(this.GetImplementedInterface()).ToSerializableType()); sw.Write(this.ID); }
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; { var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.GroupEfImpl>("Model.FK_GroupMembership_has_Group", "Group").EntityKey; binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (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(CompoundObject != null ? CompoundObject.ID : (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.Enumeration != null ? OurContext.GetIdFromProxy(this.Proxy.Enumeration) : (int?)null); }
/// <summary> /// Writes this SerializableExpression to the specified stream. /// </summary> /// <param name="binStream"></param> public void ToStream(ZetboxStreamWriter binStream) { if (binStream == null) { throw new ArgumentNullException("binStream"); } var ctx = new StreamSerializationContext(); ToStream(binStream, ctx); }
internal override void ToStream(ZetboxStreamWriter binStream, StreamSerializationContext ctx) { // do net render SerializableExpressionType for abstract, intermediate class base.ToStream(binStream, ctx); for (int i = 0; i < Children.Length; i++) { binStream.Write(true); Children[i].ToStream(binStream, ctx); } binStream.Write(false); }
public virtual void ToStream(ZetboxStreamWriter binStream) { if (binStream == null) { throw new ArgumentNullException("binStream"); } binStream.Write((byte)0); binStream.Write(Name); binStream.Write(Type); }
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.DisplayName); binStream.Write(this.Proxy.Password); binStream.Write(this.Proxy.UserName); }
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._EagerLoading); binStream.Write(this._IsInlineEditable); binStream.Write(RelationEnd != null ? RelationEnd.ID : (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._Description); binStream.Write(Method != null ? Method.ID : (int?)null); binStream.Write(Property != null ? Property.ID : (int?)null); }
internal override void ToStream(ZetboxStreamWriter binStream, StreamSerializationContext ctx) { binStream.Write((byte)SerializableExpressionType.New); base.ToStream(binStream, ctx); Constructor.ToStream(binStream); for (int i = 0; i < Members.Length; i++) { binStream.Write(true); Members[i].ToStream(binStream); } binStream.Write(false); }
public override void ToStream(ZetboxStreamWriter binStream) { if (binStream == null) { throw new ArgumentNullException("binStream"); } binStream.Write((byte)1); binStream.Write(Name); binStream.Write(Type); SerializableExpression.WriteTypeArray(binStream, ParameterTypes); }
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.IsCurrentMonthDefault); binStream.Write(this.Proxy.IsCurrentQuaterDefault); binStream.Write(this.Proxy.IsCurrentYearDefault); }
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(DisplayedTypeAssembly != null ? DisplayedTypeAssembly.ID : (int?)null); binStream.Write(this._DisplayedTypeFullName); binStream.Write(this._DisplayName); binStream.Write(VisualTree != null ? VisualTree.ID : (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; } { var key = this.RelationshipManager.GetRelatedReference <Zetbox.App.GUI.ViewModelDescriptorEfImpl>("Model.FK_Presentable_may_has_DefaultPropViewModelDescriptor", "DefaultPropViewModelDescriptor").EntityKey; binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (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._MyIntProperty); binStream.Write(ObjectProp != null ? ObjectProp.ID : (int?)null); binStream.Write(this._StringProp); binStream.Write((int?)((Zetbox.App.Test.TestObjClass) this).TestEnumProp); }
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.Destination); binStream.Write(this.Proxy.DestinationRows); binStream.Write(this.Proxy.Source); binStream.Write(this.Proxy.SourceRows); binStream.Write(this.Proxy.Timestamp); }
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._Frage); binStream.Write(Fragebogen != null ? Fragebogen.ID : (int?)null); binStream.Write(this._gute_Antworten_pos); binStream.Write(this._FragenNummer); binStream.Write(this._GegebeneAntwort); }