Ejemplo n.º 1
0
        public virtual void RemoveLogin(UserLoginInfo login)
        {
            var loginsToRemove = Logins
                                 .Where(l => l.LoginProvider == login.LoginProvider)
                                 .Where(l => l.ProviderKey == login.ProviderKey);

            Logins = Logins.Except(loginsToRemove).ToList();
        }
 public void RemoveLogin(string loginProvider)
 {
     Logins = Logins.Except(Logins.Where(li => li.LoginProvider == loginProvider)).ToList();
 }
 public void RemoveLogin(string loginProvider, string providerKey)
 {
     Logins = Logins
              .Except(Logins.Where(li => li.ProviderKey == providerKey && li.LoginProvider == loginProvider))
              .ToList();
 }