当前位置: 首页>>代码示例>>C#>>正文


C# Zetbox.Write方法代码示例

本文整理汇总了C#中Zetbox.Write方法的典型用法代码示例。如果您正苦于以下问题:C# Zetbox.Write方法的具体用法?C# Zetbox.Write怎么用?C# Zetbox.Write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zetbox的用法示例。


在下文中一共展示了Zetbox.Write方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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.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._Description);
     binStream.Write(Enumeration != null ? Enumeration.ID : (int?)null);
     binStream.Write(this._EnumerationEntries_pos);
     binStream.Write(this._isExportGuidSet);
     if (this._isExportGuidSet) {
         binStream.Write(this._ExportGuid);
     }
     binStream.Write(this._Label);
     binStream.Write(this._Name);
     binStream.Write(this._Value);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:26,代码来源:EnumerationEntry.Memory.Designer.cs

示例2: 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._Nullable);
     binStream.Write(this._isNullableWithDefaultSet);
     if (this._isNullableWithDefaultSet) {
         binStream.Write(this._NullableWithDefault);
     }
     binStream.Write(this._Standard);
     binStream.Write(this._isStandardWithDefaultSet);
     if (this._isStandardWithDefaultSet) {
         binStream.Write(this._StandardWithDefault);
     }
 }
开发者ID:daszat,项目名称:zetbox,代码行数:16,代码来源:PropertyDateTimeTest.Memory.Designer.cs

示例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.Write(this._Aufwand);
     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._DatumBis);
     binStream.Write(this._DatumVon);
     binStream.Write(this._isExportGuidSet);
     if (this._isExportGuidSet) {
         binStream.Write(this._ExportGuid);
     }
     binStream.Write(this._Name);
     binStream.Write(Projekt != null ? Projekt.ID : (int?)null);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:25,代码来源:Task.Memory.Designer.cs

示例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.Proxy.Group != null ? OurContext.GetIdFromProxy(this.Proxy.Group) : (int?)null);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:7,代码来源:GroupMembership.NHibernate.Designer.cs

示例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._isExportGuidSet);
            if (this._isExportGuidSet) {
                binStream.Write(this._ExportGuid);
            }
            {
                var r = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.ModuleEfImpl>("Model.FK_Group_has_Module", "Module");
                var key = r.EntityKey;
                binStream.Write(r.Value != null ? r.Value.ID : (key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null));
            }
            binStream.Write(this._Name);
        }
开发者ID:daszat,项目名称:zetbox,代码行数:21,代码来源:Group.Ef.Designer.cs

示例6: 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(ControlKind != null ? ControlKind.ID : (int?)null);
     binStream.Write(this._ControlTypeRef);
     binStream.Write(this._isDeletedSet);
     if (this._isDeletedSet) {
         binStream.Write(this._Deleted);
     }
     binStream.Write(this._isExportGuidSet);
     if (this._isExportGuidSet) {
         binStream.Write(this._ExportGuid);
     }
     binStream.Write(Module != null ? Module.ID : (int?)null);
     binStream.Write((int?)this._Toolkit);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:18,代码来源:ViewDescriptor.Memory.Designer.cs

示例7: 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);
        }
开发者ID:daszat,项目名称:zetbox,代码行数:26,代码来源:Muhblah.Ef.Designer.cs

示例8: 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;
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.GUI.ControlKindEfImpl>("Model.FK_ViewModel_displayed_by_DefaultDisplayKind", "DefaultDisplayKind").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.GUI.ControlKindEfImpl>("Model.FK_Presentable_has_DefaultKind", "DefaultKind").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            if (auxObjects != null) {
                auxObjects.Add(DefaultEditorKind);
            }
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.GUI.ControlKindEfImpl>("Model.FK_ViewModel_displayed_by_DefaultGridDisplayKind", "DefaultGridDisplayKind").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.GUI.ControlKindEfImpl>("Model.FK_ViewModel_displayed_by_DefaultGridCellEditorKind", "DefaultGridCellEditorKind").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.GUI.ControlKindEfImpl>("Model.FK_ViewModelDescriptor_displayedInGridBy_DefaultGridCellKind", "DefaultGridCellKind").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            if (auxObjects != null) {
                auxObjects.Add(DefaultGridCellPreEditorKind);
            }
            binStream.Write(this._Description);
            binStream.Write(this._isExportGuidSet);
            if (this._isExportGuidSet) {
                binStream.Write(this._ExportGuid);
            }
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.ModuleEfImpl>("Model.FK_ViewModelDescriptor_has_Module", "Module").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.TypeRefEfImpl>("Model.FK_Descriptor_has_ViewModelRef", "ViewModelRef").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            if (auxObjects != null) {
                auxObjects.Add(ViewModelRef);
            }
        }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:53,代码来源:ViewModelDescriptor.Ef.Designer.cs

示例9: 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.Proxy.HasPersistentOrder);
     binStream.Write(this.Proxy.ImplementorRoleName);
     binStream.Write(this.Proxy.IsList);
     binStream.Write(this.Proxy.ItemRoleName);
     binStream.Write(this.Proxy.ReferencedObjectClass != null ? OurContext.GetIdFromProxy(this.Proxy.ReferencedObjectClass) : (int?)null);
     binStream.Write(this.Proxy.Verb);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:ObjectReferencePlaceholderProperty.NHibernate.Designer.cs

示例10: 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;
     {
         var r = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.CompoundObjectEfImpl>("Model.FK_CompoundObjectProperty_has_CompoundObjectDefinition", "CompoundObjectDefinition");
         var key = r.EntityKey;
         binStream.Write(r.Value != null ? r.Value.ID : (key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null));
     }
     binStream.Write(this._HasPersistentOrder);
     binStream.Write(this._IsList);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:13,代码来源:CompoundObjectProperty.Ef.Designer.cs

示例11: 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;
            {
                var r = this.RelationshipManager.GetRelatedReference<at.dasz.DocumentManagement.FileEfImpl>("Model.FK_File_has_Excerpt", "File");
                var key = r.EntityKey;
                binStream.Write(r.Value != null ? r.Value.ID : (key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null));
            }
            binStream.Write(this._Text);
        }
开发者ID:daszat,项目名称:zetbox,代码行数:17,代码来源:Excerpt.Ef.Designer.cs

示例12: 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;
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.IdentityEfImpl>("Model.FK_SourceEnum_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_SourceEnum_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);
            }
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.EnumerationEntryEfImpl>("Model.FK_SourceEnum_mapps_to_DestinationValue", "DestinationValue").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            binStream.Write(this._isExportGuidSet);
            if (this._isExportGuidSet) {
                binStream.Write(this._ExportGuid);
            }
            {
                var key = this.RelationshipManager.GetRelatedReference<Zetbox.App.SchemaMigration.SourceColumnEfImpl>("Model.FK_SourceColumn_may_have_EnumEntries", "SourceColumn").EntityKey;
                binStream.Write(key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null);
            }
            binStream.Write(this._SourceValue);
        }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:40,代码来源:SourceEnum.Ef.Designer.cs

示例13: 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._Auftragsname);
     binStream.Write(this._Auftragswert);
     {
         var r = this.RelationshipManager.GetRelatedReference<Zetbox.App.Base.IdentityEfImpl>("Model.FK_Auftrag_ChangedBy_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_Auftrag_CreatedBy_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);
     }
     {
         var r = this.RelationshipManager.GetRelatedReference<Zetbox.App.Projekte.KundeEfImpl>("Model.FK_Auftrag_has_Kunde", "Kunde");
         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.Projekte.MitarbeiterEfImpl>("Model.FK_Auftrag_has_Mitarbeiter", "Mitarbeiter");
         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.Projekte.ProjektEfImpl>("Model.FK_Projekt_has_Auftraege", "Projekt");
         var key = r.EntityKey;
         binStream.Write(r.Value != null ? r.Value.ID : (key != null ? (int?)key.EntityKeyValues.Single().Value : (int?)null));
     }
 }
开发者ID:daszat,项目名称:zetbox,代码行数:45,代码来源:Auftrag.Ef.Designer.cs

示例14: 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(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);
        }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:20,代码来源:CalculatedObjectReferenceProperty.NHibernate.Designer.cs

示例15: 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(Constrained != null ? Constrained.ID : (int?)null);
     binStream.Write(this._isExportGuidSet);
     if (this._isExportGuidSet) {
         binStream.Write(this._ExportGuid);
     }
     binStream.Write(this._Reason);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:12,代码来源:InstanceConstraint.Memory.Designer.cs


注:本文中的Zetbox.Write方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。