/// <summary> setups the sync logic for member _localizationString</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncLocalizationString(IEntityCore relatedEntity)
 {
     if (_localizationString != relatedEntity)
     {
         DesetupSyncLocalizationString(true, true);
         _localizationString = (LocalizationStringEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_localizationString, new PropertyChangedEventHandler(OnLocalizationStringPropertyChanged), "LocalizationString", MonoSoftware.MonoX.DAL.RelationClasses.StaticLocalizationSourceRelations.LocalizationStringEntityUsingIdStatic, false, new string[] {  });
     }
 }
 protected LocalizationSourceEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity));
         if (_language != null)
         {
             _language.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _localizationBinary = (LocalizationBinaryEntity)info.GetValue("_localizationBinary", typeof(LocalizationBinaryEntity));
         if (_localizationBinary != null)
         {
             _localizationBinary.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _localizationString = (LocalizationStringEntity)info.GetValue("_localizationString", typeof(LocalizationStringEntity));
         if (_localizationString != null)
         {
             _localizationString.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 _localizationString</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 DesetupSyncLocalizationString(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_localizationString, new PropertyChangedEventHandler(OnLocalizationStringPropertyChanged), "LocalizationString", MonoSoftware.MonoX.DAL.RelationClasses.StaticLocalizationSourceRelations.LocalizationStringEntityUsingIdStatic, false, signalRelatedEntity, "LocalizationSource", false, new int[] { (int)LocalizationSourceFieldIndex.Id });
     _localizationString = null;
 }
 /// <summary> setups the sync logic for member _localizationString</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncLocalizationString(IEntityCore relatedEntity)
 {
     if(_localizationString!=relatedEntity)
     {
         DesetupSyncLocalizationString(true, true);
         _localizationString = (LocalizationStringEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _localizationString, new PropertyChangedEventHandler( OnLocalizationStringPropertyChanged ), "LocalizationString", MonoSoftware.MonoX.DAL.RelationClasses.StaticLocalizationSourceRelations.LocalizationStringEntityUsingIdStatic, false, new string[] {  } );
     }
 }
 /// <summary> Removes the sync logic for member _localizationString</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 DesetupSyncLocalizationString(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _localizationString, new PropertyChangedEventHandler( OnLocalizationStringPropertyChanged ), "LocalizationString", MonoSoftware.MonoX.DAL.RelationClasses.StaticLocalizationSourceRelations.LocalizationStringEntityUsingIdStatic, false, signalRelatedEntity, "LocalizationSource", false, new int[] { (int)LocalizationSourceFieldIndex.Id } );
     _localizationString = null;
 }
 protected LocalizationSourceEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity));
         if(_language!=null)
         {
             _language.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _localizationBinary = (LocalizationBinaryEntity)info.GetValue("_localizationBinary", typeof(LocalizationBinaryEntity));
         if(_localizationBinary!=null)
         {
             _localizationBinary.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _localizationString = (LocalizationStringEntity)info.GetValue("_localizationString", typeof(LocalizationStringEntity));
         if(_localizationString!=null)
         {
             _localizationString.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }