/// <summary> setups the sync logic for member _termsAndConditions</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncTermsAndConditions(IEntityCore relatedEntity)
 {
     if (_termsAndConditions != relatedEntity)
     {
         DesetupSyncTermsAndConditions(true, true);
         _termsAndConditions = (TermsAndConditionsEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_termsAndConditions, new PropertyChangedEventHandler(OnTermsAndConditionsPropertyChanged), "TermsAndConditions", MonoSoftware.MonoX.DAL.RelationClasses.StaticUserProfileRelations.TermsAndConditionsEntityUsingTermsAndConditionsIdStatic, true, new string[] {  });
     }
 }
 protected UserProfileEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _privacyLevel = (PrivacyLevelEntity)info.GetValue("_privacyLevel", typeof(PrivacyLevelEntity));
         if (_privacyLevel != null)
         {
             _privacyLevel.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _termsAndConditions = (TermsAndConditionsEntity)info.GetValue("_termsAndConditions", typeof(TermsAndConditionsEntity));
         if (_termsAndConditions != null)
         {
             _termsAndConditions.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
         if (_aspnetUser != null)
         {
             _aspnetUser.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 _termsAndConditions</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 DesetupSyncTermsAndConditions(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_termsAndConditions, new PropertyChangedEventHandler(OnTermsAndConditionsPropertyChanged), "TermsAndConditions", MonoSoftware.MonoX.DAL.RelationClasses.StaticUserProfileRelations.TermsAndConditionsEntityUsingTermsAndConditionsIdStatic, true, signalRelatedEntity, "UserProfile", resetFKFields, new int[] { (int)UserProfileFieldIndex.TermsAndConditionsId });
     _termsAndConditions = null;
 }
 /// <summary> setups the sync logic for member _termsAndConditions</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncTermsAndConditions(IEntityCore relatedEntity)
 {
     if(_termsAndConditions!=relatedEntity)
     {
         DesetupSyncTermsAndConditions(true, true);
         _termsAndConditions = (TermsAndConditionsEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _termsAndConditions, new PropertyChangedEventHandler( OnTermsAndConditionsPropertyChanged ), "TermsAndConditions", MonoSoftware.MonoX.DAL.RelationClasses.StaticUserProfileRelations.TermsAndConditionsEntityUsingTermsAndConditionsIdStatic, true, new string[] {  } );
     }
 }
 /// <summary> Removes the sync logic for member _termsAndConditions</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 DesetupSyncTermsAndConditions(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _termsAndConditions, new PropertyChangedEventHandler( OnTermsAndConditionsPropertyChanged ), "TermsAndConditions", MonoSoftware.MonoX.DAL.RelationClasses.StaticUserProfileRelations.TermsAndConditionsEntityUsingTermsAndConditionsIdStatic, true, signalRelatedEntity, "UserProfile", resetFKFields, new int[] { (int)UserProfileFieldIndex.TermsAndConditionsId } );
     _termsAndConditions = null;
 }
 protected UserProfileEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _privacyLevel = (PrivacyLevelEntity)info.GetValue("_privacyLevel", typeof(PrivacyLevelEntity));
         if(_privacyLevel!=null)
         {
             _privacyLevel.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _termsAndConditions = (TermsAndConditionsEntity)info.GetValue("_termsAndConditions", typeof(TermsAndConditionsEntity));
         if(_termsAndConditions!=null)
         {
             _termsAndConditions.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
         if(_aspnetUser!=null)
         {
             _aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }