/// <summary> setups the sync logic for member _pollAnswer</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncPollAnswer(IEntityCore relatedEntity) { if (_pollAnswer != relatedEntity) { DesetupSyncPollAnswer(true, true); _pollAnswer = (PollAnswerEntity)relatedEntity; this.PerformSetupSyncRelatedEntity(_pollAnswer, new PropertyChangedEventHandler(OnPollAnswerPropertyChanged), "PollAnswer", MonoSoftware.MonoX.DAL.RelationClasses.StaticPollAnswerLocalizationRelations.PollAnswerEntityUsingPollAnswerIdStatic, true, new string[] { }); } }
protected PollAnswerLocalizationEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity)); if (_language != null) { _language.AfterSave += new EventHandler(OnEntityAfterSave); } _pollAnswer = (PollAnswerEntity)info.GetValue("_pollAnswer", typeof(PollAnswerEntity)); if (_pollAnswer != null) { _pollAnswer.AfterSave += new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> setups the sync logic for member _pollAnswer</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncPollAnswer(IEntityCore relatedEntity) { if(_pollAnswer!=relatedEntity) { DesetupSyncPollAnswer(true, true); _pollAnswer = (PollAnswerEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _pollAnswer, new PropertyChangedEventHandler( OnPollAnswerPropertyChanged ), "PollAnswer", MonoSoftware.MonoX.DAL.RelationClasses.StaticPollAnswerLocalizationRelations.PollAnswerEntityUsingPollAnswerIdStatic, true, new string[] { } ); } }
/// <summary> Removes the sync logic for member _pollAnswer</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 DesetupSyncPollAnswer(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _pollAnswer, new PropertyChangedEventHandler( OnPollAnswerPropertyChanged ), "PollAnswer", MonoSoftware.MonoX.DAL.RelationClasses.StaticPollAnswerLocalizationRelations.PollAnswerEntityUsingPollAnswerIdStatic, true, signalRelatedEntity, "PollAnswerLocalizations", resetFKFields, new int[] { (int)PollAnswerLocalizationFieldIndex.PollAnswerId } ); _pollAnswer = null; }
protected PollAnswerLocalizationEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity)); if(_language!=null) { _language.AfterSave+=new EventHandler(OnEntityAfterSave); } _pollAnswer = (PollAnswerEntity)info.GetValue("_pollAnswer", typeof(PollAnswerEntity)); if(_pollAnswer!=null) { _pollAnswer.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Removes the sync logic for member _pollAnswer</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 DesetupSyncPollAnswer(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity(_pollAnswer, new PropertyChangedEventHandler(OnPollAnswerPropertyChanged), "PollAnswer", MonoSoftware.MonoX.DAL.RelationClasses.StaticPollAnswerLocalizationRelations.PollAnswerEntityUsingPollAnswerIdStatic, true, signalRelatedEntity, "PollAnswerLocalizations", resetFKFields, new int[] { (int)PollAnswerLocalizationFieldIndex.PollAnswerId }); _pollAnswer = null; }