private void FixupUserTypeMaster(UserTypeMaster previousValue) { if (previousValue != null && previousValue.UserSchemeTransactions.Contains(this)) { previousValue.UserSchemeTransactions.Remove(this); } if (UserTypeMaster != null) { if (!UserTypeMaster.UserSchemeTransactions.Contains(this)) { UserTypeMaster.UserSchemeTransactions.Add(this); } if (userTypeId != UserTypeMaster.ID) { userTypeId = UserTypeMaster.ID; } } }
private void FixupUserTypeMaster(UserTypeMaster previousValue) { if (previousValue != null && previousValue.EmployeeMasters.Contains(this)) { previousValue.EmployeeMasters.Remove(this); } if (UserTypeMaster != null) { if (!UserTypeMaster.EmployeeMasters.Contains(this)) { UserTypeMaster.EmployeeMasters.Add(this); } if (UserTypeId != UserTypeMaster.ID) { UserTypeId = UserTypeMaster.ID; } } else if (!_settingFK) { UserTypeId = null; } }