本文整理汇总了C#中Zetbox.WriteCollectionEntries方法的典型用法代码示例。如果您正苦于以下问题:C# Zetbox.WriteCollectionEntries方法的具体用法?C# Zetbox.WriteCollectionEntries怎么用?C# Zetbox.WriteCollectionEntries使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zetbox
的用法示例。
在下文中一共展示了Zetbox.WriteCollectionEntries方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ToStream
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);
}
示例2: ToStream
// 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);
}
示例3: ToStream
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);
}
示例4: ToStream
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);
}
示例5: ToStream
// 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);
}
示例6: ToStream
// 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);
}
示例7: ToStream
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);
}