Exemple #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.WriteCollectionEntries(this.AuditJournalImpl);
     binStream.Write(this._AufwandGes);
     binStream.Write(this._Bis);
     {
         var r = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.IdentityEfImpl>("Model.FK_Projekt_was_ChangedBy", "ChangedBy");
         var key = r.EntityKey;
         binStream.Write(r.Value != null ? r.Value.ID : (key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null));
     }
     binStream.Write(this._isChangedOnSet);
     if (this._isChangedOnSet) {
         binStream.Write(this._ChangedOn);
     }
     {
         var r = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.IdentityEfImpl>("Model.FK_Projekt_was_CreatedBy", "CreatedBy");
         var key = r.EntityKey;
         binStream.Write(r.Value != null ? r.Value.ID : (key != null ? (int?)key.EntityKeyValues.Single().Value : (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(this._KickOffAm);
     binStream.Write(this._KickOffBis);
     binStream.Write(this._Kundenname);
     binStream.Write(this._Name);
     binStream.Write(this._Von);
 }
Exemple #2
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.WriteCollectionEntries(this.StringCollectionImpl);
            binStream.Write(this._TestBool);
            {
                var r = this.RelationshipManager.GetRelatedReference<Zetbox.App.Test.TestCustomObjectEfImpl>("Model.FK_MB_Lst_Role_hasOther_TCO_Role", "TCO_Role");
                var key = r.EntityKey;
                binStream.Write(r.Value != null ? r.Value.ID : (key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null));
            }
            {
                var r = this.RelationshipManager.GetRelatedReference<Zetbox.App.Test.TestCustomObjectEfImpl>("Model.FK_MB_One_Role_loves_TCO_One_Role", "TCO_One_Role");
                var key = r.EntityKey;
                binStream.Write(r.Value != null ? r.Value.ID : (key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null));
            }
            binStream.Write(this._TestDateTime);
            binStream.Write((int?)_TestEnum);
            binStream.Write(this._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.WriteCollectionEntries(this._StringCollectionCollection);
     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?)this._TestEnum);
     binStream.Write(this._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(this._Birthday);
     binStream.Write(MubBlah_Nav != null ? MubBlah_Nav.ID : (int?)null);
     binStream.Write(MuhBlah_One_Nav != null ? MuhBlah_One_Nav.ID : (int?)null);
     binStream.Write(this._PersonName);
     binStream.Write(this.PhoneNumberMobile);
     binStream.Write(this.PhoneNumberOffice);
     binStream.WriteCollectionEntries(this._PhoneNumbersOtherCollection);
 }
        // 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._Birthday);
            {
                var r = this.RelationshipManager.GetRelatedReference<Zetbox.App.Test.MuhblahEfImpl>("Model.FK_MB_Role_has_TCO_Lst_Role", "MB_Role");
                var key = r.EntityKey;
                binStream.Write(r.Value != null ? r.Value.ID : (key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null));
            }
            {
                var r = this.RelationshipManager.GetRelatedReference<Zetbox.App.Test.MuhblahEfImpl>("Model.FK_MB_One_Role_loves_TCO_One_Role", "MB_One_Role");
                var key = r.EntityKey;
                binStream.Write(r.Value != null ? r.Value.ID : (key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null));
            }
            binStream.Write(this._PersonName);
            binStream.Write(this.PhoneNumberMobile);
            binStream.Write(this.PhoneNumberOffice);
            binStream.WriteCollectionEntries(this.PhoneNumbersOtherImpl);
        }
        // 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._Adresse);
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.IdentityEfImpl>("Model.FK_Kunde_was_ChangedBy", "ChangedBy").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            binStream.Write(this._isChangedOnSet);
            if (this._isChangedOnSet) {
                binStream.Write(this._ChangedOn);
            }
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.IdentityEfImpl>("Model.FK_Kunde_was_CreatedBy", "CreatedBy").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            binStream.Write(this._isCreatedOnSet);
            if (this._isCreatedOnSet) {
                binStream.Write(this._CreatedOn);
            }
            binStream.WriteCollectionEntries(this.EMailsImpl);
            binStream.Write(this._isExportGuidSet);
            if (this._isExportGuidSet) {
                binStream.Write(this._ExportGuid);
            }
            binStream.Write(this._Kundenname);
            binStream.Write(this._Land);
            binStream.Write(this._Ort);
            binStream.Write(this._PLZ);
        }
 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._Adresse);
     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.WriteCollectionEntries(this._EMailsCollection);
     binStream.Write(this._isExportGuidSet);
     if (this._isExportGuidSet) {
         binStream.Write(this._ExportGuid);
     }
     binStream.Write(this._Kundenname);
     binStream.Write(this._Land);
     binStream.Write(this._Ort);
     binStream.Write(this._PLZ);
 }