/// <summary> setups the sync logic for member _employeeClassification</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncEmployeeClassification(IEntityCore relatedEntity)
 {
     if (_employeeClassification != relatedEntity)
     {
         DesetupSyncEmployeeClassification(true, true);
         _employeeClassification = (EmployeeClassificationEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_employeeClassification, new PropertyChangedEventHandler(OnEmployeeClassificationPropertyChanged), "EmployeeClassification", LLBLGenPro.OrmCookbook.RelationClasses.StaticEmployeeRelations.EmployeeClassificationEntityUsingEmployeeClassificationKeyStatic, true, new string[] {  });
     }
 }
 protected EmployeeEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _employeeClassification = (EmployeeClassificationEntity)info.GetValue("_employeeClassification", typeof(EmployeeClassificationEntity));
         if (_employeeClassification != null)
         {
             _employeeClassification.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 _employeeClassification</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 DesetupSyncEmployeeClassification(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_employeeClassification, new PropertyChangedEventHandler(OnEmployeeClassificationPropertyChanged), "EmployeeClassification", LLBLGenPro.OrmCookbook.RelationClasses.StaticEmployeeRelations.EmployeeClassificationEntityUsingEmployeeClassificationKeyStatic, true, signalRelatedEntity, "Employees", resetFKFields, new int[] { (int)EmployeeFieldIndex.EmployeeClassificationKey });
     _employeeClassification = null;
 }