/// <summary> setups the sync logic for member _testParameters</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncTestParameters(IEntity2 relatedEntity) { if (_testParameters != relatedEntity) { DesetupSyncTestParameters(true, true); _testParameters = (TestParametersEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_testParameters, new PropertyChangedEventHandler(OnTestParametersPropertyChanged), "TestParameters", InterpretationDetailsEntity.Relations.TestParametersEntityUsingTestParameterId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _interpretations = null; _testParameters = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
protected InterpretationDetailsEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _interpretations = (InterpretationsEntity)info.GetValue("_interpretations", typeof(InterpretationsEntity)); if (_interpretations != null) { _interpretations.AfterSave += new EventHandler(OnEntityAfterSave); } _testParameters = (TestParametersEntity)info.GetValue("_testParameters", typeof(TestParametersEntity)); if (_testParameters != null) { _testParameters.AfterSave += new EventHandler(OnEntityAfterSave); } base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Removes the sync logic for member _testParameters</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 DesetupSyncTestParameters(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_testParameters, new PropertyChangedEventHandler(OnTestParametersPropertyChanged), "TestParameters", InterpretationDetailsEntity.Relations.TestParametersEntityUsingTestParameterId, true, signalRelatedEntity, "InterpretationDetails", resetFKFields, new int[] { (int)InterpretationDetailsFieldIndex.TestParameterId }); _testParameters = null; }