Example #1
0
        private void Fixupaspnet_Users(aspnet_Users previousValue)
        {
            if (previousValue != null && ReferenceEquals(previousValue.aspnet_Profile, this))
            {
                previousValue.aspnet_Profile = null;
            }

            if (aspnet_Users != null)
            {
                aspnet_Users.aspnet_Profile = this;
                if (UserId != aspnet_Users.UserId)
                {
                    UserId = aspnet_Users.UserId;
                }
            }
        }
        private void Fixupaspnet_Users(aspnet_Users previousValue)
        {
            if (previousValue != null && previousValue.aspnet_PersonalizationPerUser.Contains(this))
            {
                previousValue.aspnet_PersonalizationPerUser.Remove(this);
            }

            if (aspnet_Users != null)
            {
                if (!aspnet_Users.aspnet_PersonalizationPerUser.Contains(this))
                {
                    aspnet_Users.aspnet_PersonalizationPerUser.Add(this);
                }
                if (UserId != aspnet_Users.UserId)
                {
                    UserId = aspnet_Users.UserId;
                }
            }
            else if (!_settingFK)
            {
                UserId = null;
            }
        }
Example #3
0
        private void Fixupaspnet_Users(aspnet_Users previousValue)
        {
            if (previousValue != null && previousValue.Users.Contains(this))
            {
                previousValue.Users.Remove(this);
            }

            if (aspnet_Users != null)
            {
                if (!aspnet_Users.Users.Contains(this))
                {
                    aspnet_Users.Users.Add(this);
                }
                if (AspnetUserId != aspnet_Users.UserId)
                {
                    AspnetUserId = aspnet_Users.UserId;
                }
            }
            else if (!_settingFK)
            {
                AspnetUserId = null;
            }
        }
Example #4
0
        private void Fixupaspnet_Users(aspnet_Users previousValue)
        {
            if (previousValue != null && previousValue.Users.Contains(this))
            {
                previousValue.Users.Remove(this);
            }

            if (aspnet_Users != null)
            {
                if (!aspnet_Users.Users.Contains(this))
                {
                    aspnet_Users.Users.Add(this);
                }
                if (AspnetUserId != aspnet_Users.UserId)
                {
                    AspnetUserId = aspnet_Users.UserId;
                }
            }
            else if (!_settingFK)
            {
                AspnetUserId = null;
            }
        }
        private void Fixupaspnet_Users(aspnet_Users previousValue)
        {
            if (previousValue != null && previousValue.aspnet_PersonalizationPerUser.Contains(this))
            {
                previousValue.aspnet_PersonalizationPerUser.Remove(this);
            }

            if (aspnet_Users != null)
            {
                if (!aspnet_Users.aspnet_PersonalizationPerUser.Contains(this))
                {
                    aspnet_Users.aspnet_PersonalizationPerUser.Add(this);
                }
                if (UserId != aspnet_Users.UserId)
                {
                    UserId = aspnet_Users.UserId;
                }
            }
            else if (!_settingFK)
            {
                UserId = null;
            }
        }