/// <summary> setups the sync logic for member _aspnetRole</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncAspnetRole(IEntityCore relatedEntity) { if (_aspnetRole != relatedEntity) { DesetupSyncAspnetRole(true, true); _aspnetRole = (AspnetRolesEntity)relatedEntity; this.PerformSetupSyncRelatedEntity(_aspnetRole, new PropertyChangedEventHandler(OnAspnetRolePropertyChanged), "AspnetRole", MonoSoftware.MonoX.DAL.RelationClasses.StaticNewsCategoryInRoleRelations.AspnetRolesEntityUsingRoleIdStatic, true, new string[] { }); } }
/// <summary> setups the sync logic for member _aspnetRoles</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncAspnetRoles(IEntityCore relatedEntity) { if (_aspnetRoles != relatedEntity) { DesetupSyncAspnetRoles(true, true); _aspnetRoles = (AspnetRolesEntity)relatedEntity; this.PerformSetupSyncRelatedEntity(_aspnetRoles, new PropertyChangedEventHandler(OnAspnetRolesPropertyChanged), "AspnetRoles", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarViewRoleRelations.AspnetRolesEntityUsingRoleIdStatic, true, new string[] { }); } }
protected CalendarViewRoleEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetRoles = (AspnetRolesEntity)info.GetValue("_aspnetRoles", typeof(AspnetRolesEntity)); if (_aspnetRoles != null) { _aspnetRoles.AfterSave += new EventHandler(OnEntityAfterSave); } _calendar = (CalendarEntity)info.GetValue("_calendar", typeof(CalendarEntity)); if (_calendar != null) { _calendar.AfterSave += new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
protected BlogPostRoleEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetRole = (AspnetRolesEntity)info.GetValue("_aspnetRole", typeof(AspnetRolesEntity)); if (_aspnetRole != null) { _aspnetRole.AfterSave += new EventHandler(OnEntityAfterSave); } _blogPost = (BlogPostEntity)info.GetValue("_blogPost", typeof(BlogPostEntity)); if (_blogPost != null) { _blogPost.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 _aspnetRole</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncAspnetRole(IEntityCore relatedEntity) { if(_aspnetRole!=relatedEntity) { DesetupSyncAspnetRole(true, true); _aspnetRole = (AspnetRolesEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _aspnetRole, new PropertyChangedEventHandler( OnAspnetRolePropertyChanged ), "AspnetRole", MonoSoftware.MonoX.DAL.RelationClasses.StaticNewsCategoryInRoleRelations.AspnetRolesEntityUsingRoleIdStatic, true, new string[] { } ); } }
/// <summary> Removes the sync logic for member _aspnetRole</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 DesetupSyncAspnetRole(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _aspnetRole, new PropertyChangedEventHandler( OnAspnetRolePropertyChanged ), "AspnetRole", MonoSoftware.MonoX.DAL.RelationClasses.StaticNewsCategoryInRoleRelations.AspnetRolesEntityUsingRoleIdStatic, true, signalRelatedEntity, "", resetFKFields, new int[] { (int)NewsCategoryInRoleFieldIndex.RoleId } ); _aspnetRole = null; }
protected NewsCategoryInRoleEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetRole = (AspnetRolesEntity)info.GetValue("_aspnetRole", typeof(AspnetRolesEntity)); if(_aspnetRole!=null) { _aspnetRole.AfterSave+=new EventHandler(OnEntityAfterSave); } _newsCategory = (NewsCategoryEntity)info.GetValue("_newsCategory", typeof(NewsCategoryEntity)); if(_newsCategory!=null) { _newsCategory.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
protected CalendarEditRoleEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetRoles = (AspnetRolesEntity)info.GetValue("_aspnetRoles", typeof(AspnetRolesEntity)); if(_aspnetRoles!=null) { _aspnetRoles.AfterSave+=new EventHandler(OnEntityAfterSave); } _calendar = (CalendarEntity)info.GetValue("_calendar", typeof(CalendarEntity)); if(_calendar!=null) { _calendar.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 _aspnetRoles</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 DesetupSyncAspnetRoles(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity(_aspnetRoles, new PropertyChangedEventHandler(OnAspnetRolesPropertyChanged), "AspnetRoles", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarViewRoleRelations.AspnetRolesEntityUsingRoleIdStatic, true, signalRelatedEntity, "CalendarViewRoles", resetFKFields, new int[] { (int)CalendarViewRoleFieldIndex.RoleId }); _aspnetRoles = null; }
/// <summary> setups the sync logic for member _aspnetRoles</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncAspnetRoles(IEntityCore relatedEntity) { if(_aspnetRoles!=relatedEntity) { DesetupSyncAspnetRoles(true, true); _aspnetRoles = (AspnetRolesEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _aspnetRoles, new PropertyChangedEventHandler( OnAspnetRolesPropertyChanged ), "AspnetRoles", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarViewRoleRelations.AspnetRolesEntityUsingRoleIdStatic, true, new string[] { } ); } }
/// <summary> Removes the sync logic for member _aspnetRole</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 DesetupSyncAspnetRole(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity(_aspnetRole, new PropertyChangedEventHandler(OnAspnetRolePropertyChanged), "AspnetRole", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnDiscussionBoardInRoleRelations.AspnetRolesEntityUsingRoleIdStatic, true, signalRelatedEntity, "", resetFKFields, new int[] { (int)SnDiscussionBoardInRoleFieldIndex.RoleId }); _aspnetRole = null; }