예제 #1
0
 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._AreFlags);
 }
예제 #2
0
 public override void MergeImport(System.Xml.XmlReader xml)
 {
     base.MergeImport(xml);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights()) return;
     switch (xml.NamespaceURI + "|" + xml.LocalName) {
     case "Zetbox.App.Base|Group":
         this._fk_guid_Group = XmlStreamer.ReadNullableGuid(xml);
         break;
     }
 }
예제 #3
0
 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.GetErrorTextInvocation != null ? OurContext.GetIdFromProxy(this.Proxy.GetErrorTextInvocation) : (int?)null);
     binStream.Write(this.Proxy.IsValidInvocation != null ? OurContext.GetIdFromProxy(this.Proxy.IsValidInvocation) : (int?)null);
 }
예제 #4
0
 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);
 }
예제 #5
0
 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(CompoundObjectDefinition != null ? CompoundObjectDefinition.ID : (int?)null);
     binStream.Write(this._HasPersistentOrder);
     binStream.Write(this._IsList);
 }
예제 #6
0
 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);
 }
예제 #7
0
 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.MyIntProperty);
     binStream.Write(this.Proxy.ObjectProp != null ? OurContext.GetIdFromProxy(this.Proxy.ObjectProp) : (int?)null);
     binStream.Write(this.Proxy.StringProp);
     binStream.Write((int?)Proxy.TestEnumProp);
 }
예제 #8
0
 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);
 }
예제 #9
0
 public override void Export(System.Xml.XmlWriter xml, string[] modules)
 {
     base.Export(xml, modules);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     if (modules.Contains("*") || modules.Contains("Zetbox.App.Base"))
     {
         XmlStreamer.ToStream(DefaultPropertyViewModelDescriptor != null ? DefaultPropertyViewModelDescriptor.ExportGuid : (Guid?)null, xml, "DefaultPropertyViewModelDescriptor", "Zetbox.App.Base");
     }
 }
예제 #10
0
 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);
     }
 }
예제 #11
0
 public override void Export(System.Xml.XmlWriter xml, string[] modules)
 {
     base.Export(xml, modules);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     if (modules.Contains("*") || modules.Contains("Zetbox.App.GUI"))
     {
         XmlStreamer.ToStream(ObjectClass != null ? ObjectClass.ExportGuid : (Guid?)null, xml, "ObjectClass", "Zetbox.App.GUI");
     }
 }
예제 #12
0
 public override void Export(System.Xml.XmlWriter xml, string[] modules)
 {
     base.Export(xml, modules);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     if (modules.Contains("*") || modules.Contains("Zetbox.App.Base"))
     {
         XmlStreamer.ToStream(this.Proxy.Enumeration != null ? this.Proxy.Enumeration.ExportGuid : (Guid?)null, xml, "Enumeration", "Zetbox.App.Base");
     }
 }
예제 #13
0
 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.ObjectClassEfImpl>("Model.FK_ObjectClass_Has_FilterConfigurations", "ObjectClass").EntityKey;
         binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
     }
 }
예제 #14
0
 public override void Export(System.Xml.XmlWriter xml, string[] modules)
 {
     base.Export(xml, modules);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     if (modules.Contains("*") || modules.Contains("Zetbox.App.Calendar"))
     {
         XmlStreamer.ToStream((int?)((Zetbox.App.Calendar.DayOfWeekCalendarRule) this).DayOfWeek, xml, "DayOfWeek", "Zetbox.App.Calendar");
     }
 }
예제 #15
0
 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);
 }
예제 #16
0
 public override void Export(System.Xml.XmlWriter xml, string[] modules)
 {
     base.Export(xml, modules);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     if (modules.Contains("*") || modules.Contains("Zetbox.App.GUI"))
     {
         XmlStreamer.ToStream(this._Predicate, xml, "Predicate", "Zetbox.App.GUI");
     }
 }
예제 #17
0
        // 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;
            }
            {
                var key = this.RelationshipManager.GetRelatedReference <Zetbox.App.Test.MethodTestEfImpl>("Model.FK_Parent_has_Children", "Parent").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            binStream.Write(this._StringProp);
        }
예제 #18
0
 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);
 }
예제 #19
0
 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);
 }
예제 #20
0
 public override void Export(System.Xml.XmlWriter xml, string[] modules)
 {
     base.Export(xml, modules);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     System.Diagnostics.Debug.Assert(this._isIsUniqueSet, "Exported objects need to have all default values evaluated");
     if (modules.Contains("*") || modules.Contains("Zetbox.App.Base"))
     {
         XmlStreamer.ToStream(this._IsUnique, xml, "IsUnique", "Zetbox.App.Base");
     }
 }
예제 #21
0
        // 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(this._Name);
            {
                var key = this.RelationshipManager.GetRelatedReference <Zetbox.App.Test.One_to_N_relations_OneEfImpl>("Model.FK_OneSide_connectsTo_NSide", "OneSide").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
        }
예제 #22
0
 public override void MergeImport(System.Xml.XmlReader xml)
 {
     base.MergeImport(xml);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     switch (xml.NamespaceURI + "|" + xml.LocalName)
     {
     case "Zetbox.App.Base|DateTimeStyle":
         Proxy.DateTimeStyle = (Zetbox.App.Base.DateTimeStyles?)XmlStreamer.ReadNullableInt32(xml);
         break;
     }
 }
예제 #23
0
 public override void MergeImport(System.Xml.XmlReader xml)
 {
     base.MergeImport(xml);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     switch (xml.NamespaceURI + "|" + xml.LocalName)
     {
     case "Zetbox.App.GUI|Predicate":
         this._Predicate = XmlStreamer.ReadString(xml);
         break;
     }
 }
예제 #24
0
 public override void MergeImport(System.Xml.XmlReader xml)
 {
     base.MergeImport(xml);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     switch (xml.NamespaceURI + "|" + xml.LocalName)
     {
     case "Zetbox.App.Calendar|DayOfWeek":
         ((Zetbox.App.Calendar.DayOfWeekCalendarRule) this).DayOfWeek = (Zetbox.App.Base.DayOfWeek)XmlStreamer.ReadNullableInt32(xml);
         break;
     }
 }
예제 #25
0
 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);
     {
         var key = this.RelationshipManager.GetRelatedReference <Zetbox.App.Base.RelationEndEfImpl>("Model.FK_RelationEnd_has_Navigator", "RelationEnd").EntityKey;
         binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
     }
 }
예제 #26
0
 public override void MergeImport(System.Xml.XmlReader xml)
 {
     base.MergeImport(xml);
     // it may be only an empty shell to stand-in for unreadable data
     if (!CurrentAccessRights.HasReadRights())
     {
         return;
     }
     switch (xml.NamespaceURI + "|" + xml.LocalName)
     {
     case "Zetbox.App.GUI|IsCurrentYearDefault":
         this.Proxy.IsCurrentYearDefault = XmlStreamer.ReadNullableBoolean(xml);
         break;
     }
 }
예제 #27
0
 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(FalseIcon != null ? FalseIcon.ID : (int?)null);
     binStream.Write(this._FalseLabel);
     binStream.Write(NullIcon != null ? NullIcon.ID : (int?)null);
     binStream.Write(this._NullLabel);
     binStream.Write(TrueIcon != null ? TrueIcon.ID : (int?)null);
     binStream.Write(this._TrueLabel);
 }
예제 #28
0
 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._HasPersistentOrder);
     binStream.Write(this._ImplementorRoleName);
     binStream.Write(this._IsList);
     binStream.Write(this._ItemRoleName);
     binStream.Write(ReferencedObjectClass != null ? ReferencedObjectClass.ID : (int?)null);
     binStream.Write(this._Verb);
 }
예제 #29
0
 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.CompoundObjectEfImpl>("Model.FK_CompoundObjectProperty_has_CompoundObjectDefinition", "CompoundObjectDefinition").EntityKey;
         binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
     }
     binStream.Write(this._HasPersistentOrder);
     binStream.Write(this._IsList);
 }
예제 #30
0
 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._TestBool);
     binStream.Write(TestCustomObjects_Nav != null ? TestCustomObjects_Nav.ID : (int?)null);
     binStream.Write(TestCustomObjects_One_Nav != null ? TestCustomObjects_One_Nav.ID : (int?)null);
     binStream.Write(this._TestDateTime);
     binStream.Write((int?)((Zetbox.App.Test.Muhblah) this).TestEnum);
     binStream.Write(this._TestString);
 }