/// <summary> setups the sync logic for member _oaConsumer</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncOaConsumer(IEntityCore relatedEntity) { if (_oaConsumer != relatedEntity) { DesetupSyncOaConsumer(true, true); _oaConsumer = (OaConsumerEntity)relatedEntity; this.PerformSetupSyncRelatedEntity(_oaConsumer, new PropertyChangedEventHandler(OnOaConsumerPropertyChanged), "OaConsumer", MonoSoftware.MonoX.DAL.RelationClasses.StaticOaTokenRelations.OaConsumerEntityUsingConsumerIdStatic, true, new string[] { }); } }
protected OaTokenEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetUsers = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity)); if (_aspnetUsers != null) { _aspnetUsers.AfterSave += new EventHandler(OnEntityAfterSave); } _oaConsumer = (OaConsumerEntity)info.GetValue("_oaConsumer", typeof(OaConsumerEntity)); if (_oaConsumer != null) { _oaConsumer.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 _oaConsumer</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 DesetupSyncOaConsumer(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity(_oaConsumer, new PropertyChangedEventHandler(OnOaConsumerPropertyChanged), "OaConsumer", MonoSoftware.MonoX.DAL.RelationClasses.StaticOaTokenRelations.OaConsumerEntityUsingConsumerIdStatic, true, signalRelatedEntity, "OaTokens", resetFKFields, new int[] { (int)OaTokenFieldIndex.ConsumerId }); _oaConsumer = null; }
/// <summary> setups the sync logic for member _oaConsumer</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncOaConsumer(IEntityCore relatedEntity) { if(_oaConsumer!=relatedEntity) { DesetupSyncOaConsumer(true, true); _oaConsumer = (OaConsumerEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _oaConsumer, new PropertyChangedEventHandler( OnOaConsumerPropertyChanged ), "OaConsumer", MonoSoftware.MonoX.DAL.RelationClasses.StaticOaTokenRelations.OaConsumerEntityUsingConsumerIdStatic, true, new string[] { } ); } }
/// <summary> Removes the sync logic for member _oaConsumer</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 DesetupSyncOaConsumer(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _oaConsumer, new PropertyChangedEventHandler( OnOaConsumerPropertyChanged ), "OaConsumer", MonoSoftware.MonoX.DAL.RelationClasses.StaticOaTokenRelations.OaConsumerEntityUsingConsumerIdStatic, true, signalRelatedEntity, "OaTokens", resetFKFields, new int[] { (int)OaTokenFieldIndex.ConsumerId } ); _oaConsumer = null; }
protected OaTokenEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetUsers = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity)); if(_aspnetUsers!=null) { _aspnetUsers.AfterSave+=new EventHandler(OnEntityAfterSave); } _oaConsumer = (OaConsumerEntity)info.GetValue("_oaConsumer", typeof(OaConsumerEntity)); if(_oaConsumer!=null) { _oaConsumer.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
protected SnEventEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetUsers = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity)); if(_aspnetUsers!=null) { _aspnetUsers.AfterSave+=new EventHandler(OnEntityAfterSave); } _friendAspnetUsers = (AspnetUsersEntity)info.GetValue("_friendAspnetUsers", typeof(AspnetUsersEntity)); if(_friendAspnetUsers!=null) { _friendAspnetUsers.AfterSave+=new EventHandler(OnEntityAfterSave); } _blogPost = (BlogPostEntity)info.GetValue("_blogPost", typeof(BlogPostEntity)); if(_blogPost!=null) { _blogPost.AfterSave+=new EventHandler(OnEntityAfterSave); } _oaConsumer = (OaConsumerEntity)info.GetValue("_oaConsumer", typeof(OaConsumerEntity)); if(_oaConsumer!=null) { _oaConsumer.AfterSave+=new EventHandler(OnEntityAfterSave); } _snAlbum = (SnAlbumEntity)info.GetValue("_snAlbum", typeof(SnAlbumEntity)); if(_snAlbum!=null) { _snAlbum.AfterSave+=new EventHandler(OnEntityAfterSave); } _snDiscussionBoard = (SnDiscussionBoardEntity)info.GetValue("_snDiscussionBoard", typeof(SnDiscussionBoardEntity)); if(_snDiscussionBoard!=null) { _snDiscussionBoard.AfterSave+=new EventHandler(OnEntityAfterSave); } _snDiscussionTopic = (SnDiscussionTopicEntity)info.GetValue("_snDiscussionTopic", typeof(SnDiscussionTopicEntity)); if(_snDiscussionTopic!=null) { _snDiscussionTopic.AfterSave+=new EventHandler(OnEntityAfterSave); } _snEventType = (SnEventTypeEntity)info.GetValue("_snEventType", typeof(SnEventTypeEntity)); if(_snEventType!=null) { _snEventType.AfterSave+=new EventHandler(OnEntityAfterSave); } _snFile = (SnFileEntity)info.GetValue("_snFile", typeof(SnFileEntity)); if(_snFile!=null) { _snFile.AfterSave+=new EventHandler(OnEntityAfterSave); } _snGroup = (SnGroupEntity)info.GetValue("_snGroup", typeof(SnGroupEntity)); if(_snGroup!=null) { _snGroup.AfterSave+=new EventHandler(OnEntityAfterSave); } _snNote = (SnNoteEntity)info.GetValue("_snNote", typeof(SnNoteEntity)); if(_snNote!=null) { _snNote.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }