Exemple #1
0
        public virtual bool Equals(IdentityUserLogin other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (!this.GetType().IsUnproxiedTypeEqual(other.GetType()))
            {
                return(false);
            }

            return(this.LoginProvider == other.LoginProvider &&
                   this.ProviderKey == other.ProviderKey &&
                   this.UserId == other.UserId &&
                   this.ProviderDisplayName == other.ProviderDisplayName);
        }
 protected bool Equals(IdentityUserLogin other)
 {
     return(LoginProvider == other.LoginProvider &&
            ProviderKey == other.ProviderKey);
 }
 public virtual bool RemoveLogin(IdentityUserLogin login)
 {
     return(RemoveFromCollection(this.Logins, login));
 }
 public virtual void AddLogin(IdentityUserLogin login)
 {
     EnsureLoginsCollection();
     AddToCollection(this.Logins, login);
 }