Esempio n. 1
0
        private void FixupAspNetUser(AspNetUserDto previousValue)
        {
            if (previousValue != null && previousValue.AspNetUserClaims.Contains(this))
            {
                previousValue.AspNetUserClaims.Remove(this);
            }

            if (AspNetUser != null)
            {
                if (!AspNetUser.AspNetUserClaims.Contains(this))
                {
                    AspNetUser.AspNetUserClaims.Add(this);
                }
                if (UserId != AspNetUser.Id)
                {
                    UserId = AspNetUser.Id;
                }
            }
        }
        private void FixupAspNetUser(AspNetUserDto previousValue)
        {
            if (previousValue != null && previousValue.UsersXSubscriptions.Contains(this))
            {
                previousValue.UsersXSubscriptions.Remove(this);
            }

            if (AspNetUser != null)
            {
                if (!AspNetUser.UsersXSubscriptions.Contains(this))
                {
                    AspNetUser.UsersXSubscriptions.Add(this);
                }
                if (idUser != AspNetUser.Id)
                {
                    idUser = AspNetUser.Id;
                }
            }
        }
Esempio n. 3
0
        private void FixupAspNetUser(AspNetUserDto previousValue)
        {
            if (previousValue != null && previousValue.ChartComments.Contains(this))
            {
                previousValue.ChartComments.Remove(this);
            }

            if (AspNetUser != null)
            {
                if (!AspNetUser.ChartComments.Contains(this))
                {
                    AspNetUser.ChartComments.Add(this);
                }
                if (IdUser != AspNetUser.Id)
                {
                    IdUser = AspNetUser.Id;
                }
            }
        }