Exemplo n.º 1
0
 /// <summary> setups the sync logic for member _calendarEventRecurringDefinitionType</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncCalendarEventRecurringDefinitionType(IEntityCore relatedEntity)
 {
     if (_calendarEventRecurringDefinitionType != relatedEntity)
     {
         DesetupSyncCalendarEventRecurringDefinitionType(true, true);
         _calendarEventRecurringDefinitionType = (CalendarEventRecurringDefinitionTypeEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_calendarEventRecurringDefinitionType, new PropertyChangedEventHandler(OnCalendarEventRecurringDefinitionTypePropertyChanged), "CalendarEventRecurringDefinitionType", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarEventRecurringDefinitionRelations.CalendarEventRecurringDefinitionTypeEntityUsingRecurringTypeIdStatic, true, new string[] {  });
     }
 }
Exemplo n.º 2
0
 protected CalendarEventRecurringDefinitionEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _calendarEvents = (EntityCollection <CalendarEventEntity>)info.GetValue("_calendarEvents", typeof(EntityCollection <CalendarEventEntity>));
         _calendarEventRecurringDefinitionType = (CalendarEventRecurringDefinitionTypeEntity)info.GetValue("_calendarEventRecurringDefinitionType", typeof(CalendarEventRecurringDefinitionTypeEntity));
         if (_calendarEventRecurringDefinitionType != null)
         {
             _calendarEventRecurringDefinitionType.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 _calendarEventRecurringDefinitionType</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncCalendarEventRecurringDefinitionType(IEntityCore relatedEntity)
 {
     if(_calendarEventRecurringDefinitionType!=relatedEntity)
     {
         DesetupSyncCalendarEventRecurringDefinitionType(true, true);
         _calendarEventRecurringDefinitionType = (CalendarEventRecurringDefinitionTypeEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _calendarEventRecurringDefinitionType, new PropertyChangedEventHandler( OnCalendarEventRecurringDefinitionTypePropertyChanged ), "CalendarEventRecurringDefinitionType", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarEventRecurringDefinitionRelations.CalendarEventRecurringDefinitionTypeEntityUsingRecurringTypeIdStatic, true, new string[] {  } );
     }
 }
 /// <summary> Removes the sync logic for member _calendarEventRecurringDefinitionType</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 DesetupSyncCalendarEventRecurringDefinitionType(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _calendarEventRecurringDefinitionType, new PropertyChangedEventHandler( OnCalendarEventRecurringDefinitionTypePropertyChanged ), "CalendarEventRecurringDefinitionType", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarEventRecurringDefinitionRelations.CalendarEventRecurringDefinitionTypeEntityUsingRecurringTypeIdStatic, true, signalRelatedEntity, "CalendarEventRecurringDefinitions", resetFKFields, new int[] { (int)CalendarEventRecurringDefinitionFieldIndex.RecurringTypeId } );
     _calendarEventRecurringDefinitionType = null;
 }
 protected CalendarEventRecurringDefinitionEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _calendarEvents = (EntityCollection<CalendarEventEntity>)info.GetValue("_calendarEvents", typeof(EntityCollection<CalendarEventEntity>));
         _calendarEventRecurringDefinitionType = (CalendarEventRecurringDefinitionTypeEntity)info.GetValue("_calendarEventRecurringDefinitionType", typeof(CalendarEventRecurringDefinitionTypeEntity));
         if(_calendarEventRecurringDefinitionType!=null)
         {
             _calendarEventRecurringDefinitionType.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
Exemplo n.º 6
0
 /// <summary> Removes the sync logic for member _calendarEventRecurringDefinitionType</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 DesetupSyncCalendarEventRecurringDefinitionType(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_calendarEventRecurringDefinitionType, new PropertyChangedEventHandler(OnCalendarEventRecurringDefinitionTypePropertyChanged), "CalendarEventRecurringDefinitionType", MonoSoftware.MonoX.DAL.RelationClasses.StaticCalendarEventRecurringDefinitionRelations.CalendarEventRecurringDefinitionTypeEntityUsingRecurringTypeIdStatic, true, signalRelatedEntity, "CalendarEventRecurringDefinitions", resetFKFields, new int[] { (int)CalendarEventRecurringDefinitionFieldIndex.RecurringTypeId });
     _calendarEventRecurringDefinitionType = null;
 }