MonoSoftware.MonoX.DAL.EntityClasses.PollEntity.PerformDesyncSetupFKFieldChange C# (CSharp) Method

PerformDesyncSetupFKFieldChange() protected method

Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed.
protected PerformDesyncSetupFKFieldChange ( int fieldIndex ) : void
fieldIndex int The fieldindex.
return void
        protected override void PerformDesyncSetupFKFieldChange(int fieldIndex)
        {
            switch((PollFieldIndex)fieldIndex)
            {
                case PollFieldIndex.UserId:
                    DesetupSyncAspnetUser(true, false);
                    break;
                case PollFieldIndex.ApplicationId:
                    DesetupSyncAspnetApplication(true, false);
                    break;
                default:
                    base.PerformDesyncSetupFKFieldChange(fieldIndex);
                    break;
            }
        }