Inheritance: CommonEntityBase
 /// <summary> setups the sync logic for member _calendar</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncCalendar(IEntityCore relatedEntity)
 {
     if (_calendar != relatedEntity)
     {
         DesetupSyncCalendar(true, true);
         _calendar = (CalendarEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_calendar, new PropertyChangedEventHandler(OnCalendarPropertyChanged), "Calendar", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarEventEntryRelations.CalendarEntityUsingCalendarIdStatic, true, new string[] {  });
     }
 }
 protected CalendarEventEntryEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _calendar = (CalendarEntity)info.GetValue("_calendar", typeof(CalendarEntity));
         if (_calendar != null)
         {
             _calendar.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _calendarEvent = (CalendarEventEntity)info.GetValue("_calendarEvent", typeof(CalendarEventEntity));
         if (_calendarEvent != null)
         {
             _calendarEvent.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 _calendar</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 DesetupSyncCalendar(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_calendar, new PropertyChangedEventHandler(OnCalendarPropertyChanged), "Calendar", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarEventEntryRelations.CalendarEntityUsingCalendarIdStatic, true, signalRelatedEntity, "CalendarEventEntries", resetFKFields, new int[] { (int)CalendarEventEntryFieldIndex.CalendarId });
     _calendar = null;
 }
 /// <summary> setups the sync logic for member _calendar</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncCalendar(IEntityCore relatedEntity)
 {
     if(_calendar!=relatedEntity)
     {
         DesetupSyncCalendar(true, true);
         _calendar = (CalendarEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _calendar, new PropertyChangedEventHandler( OnCalendarPropertyChanged ), "Calendar", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarEditRoleRelations.CalendarEntityUsingCalendarIdStatic, true, new string[] {  } );
     }
 }
 /// <summary> Removes the sync logic for member _calendar</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 DesetupSyncCalendar(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _calendar, new PropertyChangedEventHandler( OnCalendarPropertyChanged ), "Calendar", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarEditRoleRelations.CalendarEntityUsingCalendarIdStatic, true, signalRelatedEntity, "CalendarEditRoles", resetFKFields, new int[] { (int)CalendarEditRoleFieldIndex.CalendarId } );
     _calendar = null;
 }
 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
 }