本文整理汇总了C#中Zetbox.Read方法的典型用法代码示例。如果您正苦于以下问题:C# Zetbox.Read方法的具体用法?C# Zetbox.Read怎么用?C# Zetbox.Read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zetbox
的用法示例。
在下文中一共展示了Zetbox.Read方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
binStream.Read(out this._fk_Module);
this._Name = binStream.ReadString();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例2: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
binStream.Read(out this._fk_ChangedBy);
this._isChangedOnSet = binStream.ReadBoolean();
if (this._isChangedOnSet) {
this._ChangedOn = binStream.ReadDateTime();
}
this._Comment = binStream.ReadString();
this._isCompareNullsSet = binStream.ReadBoolean();
if (this._isCompareNullsSet) {
this._CompareNulls = binStream.ReadBoolean();
}
binStream.Read(out this._fk_CreatedBy);
this._isCreatedOnSet = binStream.ReadBoolean();
if (this._isCreatedOnSet) {
this._CreatedOn = binStream.ReadDateTime();
}
((Zetbox.App.SchemaMigration.SourceColumn)this).DbType = (Zetbox.App.SchemaMigration.ColumnType)binStream.ReadNullableInt32();
this._Description = binStream.ReadString();
DestinationProperty_was_eagerLoaded = binStream.ReadBoolean();
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
this._IsNullable = binStream.ReadNullableBoolean();
this._Name = binStream.ReadString();
binStream.Read(out this._fk_References);
this._Size = binStream.ReadNullableInt32();
binStream.Read(out this._fk_SourceTable);
((Zetbox.App.SchemaMigration.SourceColumn)this).Status = (Zetbox.App.SchemaMigration.MappingStatus?)binStream.ReadNullableInt32();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例3: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
binStream.Read(out this._fk_ChangedBy);
this._isChangedOnSet = binStream.ReadBoolean();
if (this._isChangedOnSet) {
this._ChangedOn = binStream.ReadDateTime();
}
binStream.Read(out this._fk_CreatedBy);
this._isCreatedOnSet = binStream.ReadBoolean();
if (this._isCreatedOnSet) {
this._CreatedOn = binStream.ReadDateTime();
}
_DeploymentRestriction = (Zetbox.App.Base.DeploymentRestriction?)binStream.ReadNullableInt32();
this._Description = binStream.ReadString();
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
binStream.Read(out this._fk_Module);
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例4: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
binStream.Read(out this._fk_ChangedBy);
this._isChangedOnSet = binStream.ReadBoolean();
if (this._isChangedOnSet) {
this._ChangedOn = binStream.ReadDateTime();
}
binStream.Read(out this._fk_CreatedBy);
this._isCreatedOnSet = binStream.ReadBoolean();
if (this._isCreatedOnSet) {
this._CreatedOn = binStream.ReadDateTime();
}
this._Description = binStream.ReadString();
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
this._HelpText = binStream.ReadString();
this._IsList = binStream.ReadBoolean();
this._isIsNullableSet = binStream.ReadBoolean();
if (this._isIsNullableSet) {
this._IsNullable = binStream.ReadBoolean();
}
this._IsReturnParameter = binStream.ReadBoolean();
this._Label = binStream.ReadString();
binStream.Read(out this._fk_Method);
this._Parameter_pos = binStream.ReadNullableInt32();
this._Name = binStream.ReadString();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例5: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
binStream.Read(out this._fk_ControlKind);
binStream.Read(out this._fk_ControlRef);
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
binStream.Read(out this._fk_Module);
SupportedViewModels_was_eagerLoaded = binStream.ReadBoolean();
((Zetbox.App.GUI.ViewDescriptor)this).Toolkit = (Zetbox.App.GUI.Toolkit)binStream.ReadNullableInt32();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例6: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
this.Proxy.HasPersistentOrder = binStream.ReadBoolean();
this.Proxy.ImplementorRoleName = binStream.ReadString();
this.Proxy.IsList = binStream.ReadBoolean();
this.Proxy.ItemRoleName = binStream.ReadString();
binStream.Read(out this._fk_ReferencedObjectClass);
this.Proxy.Verb = binStream.ReadString();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例7: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
binStream.Read(out this._fk_ChangedBy);
this._isChangedOnSet = binStream.ReadBoolean();
if (this._isChangedOnSet) {
this._ChangedOn = binStream.ReadDateTime();
}
this._Comment = binStream.ReadString();
binStream.Read(out this._fk_CreatedBy);
this._isCreatedOnSet = binStream.ReadBoolean();
if (this._isCreatedOnSet) {
this._CreatedOn = binStream.ReadDateTime();
}
this._Description = binStream.ReadString();
binStream.Read(out this._fk_DestinationObjectClass);
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
this._Name = binStream.ReadString();
binStream.Read(out this._fk_StagingDatabase);
_Status = (Zetbox.App.SchemaMigration.MappingStatus?)binStream.ReadNullableInt32();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例8: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
binStream.Read(out this._fk_Calendar);
binStream.Read(out this._fk_ChangedBy);
this._isChangedOnSet = binStream.ReadBoolean();
if (this._isChangedOnSet) {
this._ChangedOn = binStream.ReadDateTime();
}
binStream.Read(out this._fk_CreatedBy);
this._isCreatedOnSet = binStream.ReadBoolean();
if (this._isCreatedOnSet) {
this._CreatedOn = binStream.ReadDateTime();
}
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
this._isIsWorkingDaySet = binStream.ReadBoolean();
if (this._isIsWorkingDaySet) {
this._IsWorkingDay = binStream.ReadBoolean();
}
binStream.Read(out this._fk_Module);
this._Name = binStream.ReadString();
this._ValidFrom = binStream.ReadNullableDateTime();
this._ValidUntil = binStream.ReadNullableDateTime();
this._WorkingHours = binStream.ReadDecimal();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例9: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
binStream.Read(out this._fk_ChangedBy);
this._isChangedOnSet = binStream.ReadBoolean();
if (this._isChangedOnSet) {
this._ChangedOn = binStream.ReadDateTime();
}
binStream.Read(out this._fk_CreatedBy);
this._isCreatedOnSet = binStream.ReadBoolean();
if (this._isCreatedOnSet) {
this._CreatedOn = binStream.ReadDateTime();
}
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
this._Label = binStream.ReadString();
binStream.Read(out this._fk_Module);
this._RefreshOnFilterChanged = binStream.ReadNullableBoolean();
binStream.Read(out this._fk_RequestedKind);
this._Required = binStream.ReadBoolean();
binStream.Read(out this._fk_ViewModelDescriptor);
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例10: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
this._Body = binStream.ReadString();
binStream.Read(out this._fk_Calendar);
binStream.Read(out this._fk_ChangedBy);
this._isChangedOnSet = binStream.ReadBoolean();
if (this._isChangedOnSet) {
this._ChangedOn = binStream.ReadDateTime();
}
binStream.Read(out this._fk_CreatedBy);
this._isCreatedOnSet = binStream.ReadBoolean();
if (this._isCreatedOnSet) {
this._CreatedOn = binStream.ReadDateTime();
}
this._EndDate = binStream.ReadDateTime();
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
this._isIsAllDaySet = binStream.ReadBoolean();
if (this._isIsAllDaySet) {
this._IsAllDay = binStream.ReadBoolean();
}
this._isIsViewReadOnlySet = binStream.ReadBoolean();
if (this._isIsViewReadOnlySet) {
this._IsViewReadOnly = binStream.ReadBoolean();
}
this._Location = binStream.ReadString();
{
// use backing store to avoid notifications
this.RecurrenceImpl = binStream.ReadCompoundObject<Zetbox.App.Base.RecurrenceRuleEfImpl>();
this.RecurrenceImpl.AttachToObject(this, "Recurrence");
}
{
// use backing store to avoid notifications
this.SourceImpl = binStream.ReadCompoundObject<Zetbox.App.Base.AnyReferenceEfImpl>();
this.SourceImpl.AttachToObject(this, "Source");
}
this._StartDate = binStream.ReadDateTime();
this._Summary = binStream.ReadString();
this._SyncHash = binStream.ReadString();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例11: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
binStream.Read(out this._fk_Assembly);
binStream.Read(out this._fk_ChangedBy);
this._isChangedOnSet = binStream.ReadBoolean();
if (this._isChangedOnSet) {
this._ChangedOn = binStream.ReadDateTime();
}
binStream.Read(out this._fk_CreatedBy);
this._isCreatedOnSet = binStream.ReadBoolean();
if (this._isCreatedOnSet) {
this._CreatedOn = binStream.ReadDateTime();
}
this._Deleted = binStream.ReadNullableBoolean();
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
this._FullName = binStream.ReadString();
GenericArguments_was_eagerLoaded = binStream.ReadBoolean();
binStream.Read(out this._fk_Parent);
this._ToStringCache = binStream.ReadString();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例12: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
this._CategoryTags = binStream.ReadString();
binStream.Read(out this._fk_ChangedBy);
this._isChangedOnSet = binStream.ReadBoolean();
if (this._isChangedOnSet) {
this._ChangedOn = binStream.ReadDateTime();
}
this._CodeTemplate = binStream.ReadString();
binStream.Read(out this._fk_CreatedBy);
this._isCreatedOnSet = binStream.ReadBoolean();
if (this._isCreatedOnSet) {
this._CreatedOn = binStream.ReadDateTime();
}
this._Description = binStream.ReadString();
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
binStream.Read(out this._fk_Icon);
this._InvokeOnServer = binStream.ReadNullableBoolean();
this._IsDisplayable = binStream.ReadBoolean();
this._Label = binStream.ReadString();
binStream.Read(out this._fk_Module);
this._Name = binStream.ReadString();
binStream.Read(out this._fk_ObjectClass);
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例13: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
{
// use backing store to avoid notifications
this.AttachedToImpl = binStream.ReadCompoundObject<Zetbox.App.Base.AnyReferenceEfImpl>();
this.AttachedToImpl.AttachToObject(this, "AttachedTo");
}
binStream.Read(out this._fk_Blob);
binStream.Read(out this._fk_ChangedBy);
this._isChangedOnSet = binStream.ReadBoolean();
if (this._isChangedOnSet) {
this._ChangedOn = binStream.ReadDateTime();
}
binStream.Read(out this._fk_CreatedBy);
this._isCreatedOnSet = binStream.ReadBoolean();
if (this._isCreatedOnSet) {
this._CreatedOn = binStream.ReadDateTime();
}
binStream.Read(out this._fk_Excerpt);
this._isExportGuidSet = binStream.ReadBoolean();
if (this._isExportGuidSet) {
this._ExportGuid = binStream.ReadGuid();
}
this._isIsFileReadonlySet = binStream.ReadBoolean();
if (this._isIsFileReadonlySet) {
this._IsFileReadonly = binStream.ReadBoolean();
}
this._isKeepRevisionsSet = binStream.ReadBoolean();
if (this._isKeepRevisionsSet) {
this._KeepRevisions = binStream.ReadBoolean();
}
this._Name = binStream.ReadString();
this._Tags = binStream.ReadString();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例14: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
_CalculatedEnumeration = (Zetbox.App.Test.TestEnum)binStream.ReadNullableInt32();
this._MyIntProperty = binStream.ReadNullableInt32();
binStream.Read(out this._fk_ObjectProp);
this._StringProp = binStream.ReadString();
_TestEnumProp = (Zetbox.App.Test.TestEnum)binStream.ReadNullableInt32();
this._isTestEnumWithDefaultSet = binStream.ReadBoolean();
if (this._isTestEnumWithDefaultSet) {
_TestEnumWithDefault = (Zetbox.App.Test.TestEnum)binStream.ReadNullableInt32();
}
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}
示例15: FromStream
public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
{
var baseResult = base.FromStream(binStream);
var result = new List<IPersistenceObject>();
// it may be only an empty shell to stand-in for unreadable data
if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
this.Proxy.AllowAddNew = binStream.ReadNullableBoolean();
this.Proxy.AllowDelete = binStream.ReadNullableBoolean();
this.Proxy.AllowSelectColumns = binStream.ReadNullableBoolean();
this.Proxy.AllowUserFilter = binStream.ReadNullableBoolean();
this.Proxy.EnableAutoFilter = binStream.ReadNullableBoolean();
this.Proxy.InitialSort = binStream.ReadString();
Proxy.InitialSortDirection = (Zetbox.App.GUI.ListSortDirection?)binStream.ReadNullableInt32();
this.Proxy.IsEditable = binStream.ReadNullableBoolean();
this.Proxy.IsMultiselect = binStream.ReadNullableBoolean();
binStream.Read(out this._fk_RequestedEditorKind);
binStream.Read(out this._fk_RequestedWorkspaceKind);
this.Proxy.RespectRequiredFilter = binStream.ReadNullableBoolean();
this.Proxy.ShowFilter = binStream.ReadNullableBoolean();
this.Proxy.ShowMasterDetail = binStream.ReadNullableBoolean();
this.Proxy.ShowOpenCommand = binStream.ReadNullableBoolean();
this.Proxy.ShowRefreshCommand = binStream.ReadNullableBoolean();
binStream.Read(out this._fk_Type);
Proxy.ViewMethod = (Zetbox.App.GUI.InstanceListViewMethod?)binStream.ReadNullableInt32();
} // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
return baseResult == null
? result.Count == 0
? null
: result
: baseResult.Concat(result);
}