/// <summary> Removes the sync logic for member _snEventType</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 DesetupSyncSnEventType(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _snEventType, new PropertyChangedEventHandler( OnSnEventTypePropertyChanged ), "SnEventType", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnEventRelations.SnEventTypeEntityUsingEventTypeIdStatic, true, signalRelatedEntity, "", resetFKFields, new int[] { (int)SnEventFieldIndex.EventTypeId } ); _snEventType = null; }
/// <summary> setups the sync logic for member _snEventType</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncSnEventType(IEntityCore relatedEntity) { if(_snEventType!=relatedEntity) { DesetupSyncSnEventType(true, true); _snEventType = (SnEventTypeEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _snEventType, new PropertyChangedEventHandler( OnSnEventTypePropertyChanged ), "SnEventType", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnEventRelations.SnEventTypeEntityUsingEventTypeIdStatic, true, new string[] { } ); } }
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 }