private void Fixuppublisher(publisher previousValue)
        {
            if (previousValue != null && previousValue.titles.Contains(this))
            {
                previousValue.titles.Remove(this);
            }

            if (publisher != null)
            {
                if (!publisher.titles.Contains(this))
                {
                    publisher.titles.Add(this);
                }
                if (publisherid != publisher.id)
                {
                    publisherid = publisher.id;
                }
            }
            else if (!_settingFK)
            {
                publisherid = null;
            }
        }
        private void Fixuppublisher(publisher previousValue)
        {
            if (previousValue != null && previousValue.employees.Contains(this))
            {
                previousValue.employees.Remove(this);
            }

            if (publisher != null)
            {
                if (!publisher.employees.Contains(this))
                {
                    publisher.employees.Add(this);
                }
                if (publisherid != publisher.id)
                {
                    publisherid = publisher.id;
                }
            }
        }