protected ResultArchiveUploadLogEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _customerProfile = (CustomerProfileEntity)info.GetValue("_customerProfile", typeof(CustomerProfileEntity)); if (_customerProfile != null) { _customerProfile.AfterSave += new EventHandler(OnEntityAfterSave); } _resultArchiveUpload = (ResultArchiveUploadEntity)info.GetValue("_resultArchiveUpload", typeof(ResultArchiveUploadEntity)); if (_resultArchiveUpload != null) { _resultArchiveUpload.AfterSave += new EventHandler(OnEntityAfterSave); } _test = (TestEntity)info.GetValue("_test", typeof(TestEntity)); if (_test != null) { _test.AfterSave += new EventHandler(OnEntityAfterSave); } base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> setups the sync logic for member _resultArchiveUpload</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncResultArchiveUpload(IEntity2 relatedEntity) { if (_resultArchiveUpload != relatedEntity) { DesetupSyncResultArchiveUpload(true, true); _resultArchiveUpload = (ResultArchiveUploadEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_resultArchiveUpload, new PropertyChangedEventHandler(OnResultArchiveUploadPropertyChanged), "ResultArchiveUpload", ResultArchiveUploadLogEntity.Relations.ResultArchiveUploadEntityUsingResultArchiveUploadId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _customerProfile = null; _resultArchiveUpload = null; _test = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary> Removes the sync logic for member _resultArchiveUpload</summary> /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param> /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param> private void DesetupSyncResultArchiveUpload(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_resultArchiveUpload, new PropertyChangedEventHandler(OnResultArchiveUploadPropertyChanged), "ResultArchiveUpload", ResultArchiveUploadLogEntity.Relations.ResultArchiveUploadEntityUsingResultArchiveUploadId, true, signalRelatedEntity, "ResultArchiveUploadLog", resetFKFields, new int[] { (int)ResultArchiveUploadLogFieldIndex.ResultArchiveUploadId }); _resultArchiveUpload = null; }