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); }
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.DecimalValue = binStream.ReadDecimal(); } // if (CurrentAccessRights != Zetbox.API.AccessRights.None) return baseResult == null ? result.Count == 0 ? null : result : baseResult.Concat(result); }
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._Nullable = binStream.ReadNullableDecimal(); this._isNullableWithDefaultSet = binStream.ReadBoolean(); if (this._isNullableWithDefaultSet) { this._NullableWithDefault = binStream.ReadNullableDecimal(); } this._Standard = binStream.ReadDecimal(); this._isStandardWithDefaultSet = binStream.ReadBoolean(); if (this._isStandardWithDefaultSet) { this._StandardWithDefault = binStream.ReadDecimal(); } } // if (CurrentAccessRights != Zetbox.API.AccessRights.None) return baseResult == null ? result.Count == 0 ? null : result : baseResult.Concat(result); }