public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (BuyerId?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PrimaryPhone?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (SecondaryPhone?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Fax?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (WebSite?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Company?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (AnnualTurnOver?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (LegalRepresentative?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Rating?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CreditInsurance.GetHashCode());
            hashCode = hashCode * -1521134295 + (Logo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (AddressOne?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (AddressTwo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (VatNumber?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ContactPerson?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Prefix?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Temp?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (UserName?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PasswordHash?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (SecurityStamp?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (EmailConfirmed.GetHashCode());
            hashCode = hashCode * -1521134295 + (LockoutEnabled.GetHashCode());
            hashCode = hashCode * -1521134295 + (PhoneNumberConfirmed.GetHashCode());
            hashCode = hashCode * -1521134295 + (TwoFactorEnabled.GetHashCode());
            hashCode = hashCode * -1521134295 + (AccessFailedCount?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Name?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Email?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PhoneNumber?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (LockoutEndDate?.GetHashCode() ?? 0);
            return(hashCode);
        }
Beispiel #2
0
        //
        /// <summary>
        /// Create a 'to string'.
        /// </summary>
        public override string ToString()
        {
            //
            StringBuilder _return = new StringBuilder("record:[");

            _return.AppendFormat("Id: {0}, ", Id);
            _return.AppendFormat("UserName: {0}, ", UserName);
            _return.AppendFormat("Email: {0}, ", Email);
            _return.AppendFormat("FirstName: {0}, ", FirstName);
            _return.AppendFormat("LastName: {0}, ", LastName);
            _return.AppendFormat("FullName: {0}, ", FullName);
            _return.AppendFormat("UserNicName: {0}, ", UserNicName);
            _return.AppendFormat("CompanyId: {0}, ", CompanyId.ToString());
            _return.AppendFormat("CreateDate: {0}, ", CreateDate.ToString());
            _return.AppendFormat("EmailConfirmed: {0}, ", EmailConfirmed.ToString());
            _return.AppendFormat("PhoneNumber: {0}, ", PhoneNumber);
            _return.AppendFormat("PhoneNumberConfirmed: {0}, ", PhoneNumberConfirmed.ToString());
            _return.AppendFormat("TwoFactorEnabled: {0}, ", TwoFactorEnabled.ToString());
            if (LockoutEndDateUtc.HasValue)
            {
                _return.AppendFormat("LockoutEndDateUtc: {0}, ", LockoutEndDateUtc.ToString());
            }
            else
            {
                _return.AppendFormat("/LockoutEndDateUtc/, ");
            }
            _return.AppendFormat("LockoutEnabled: {0}, ", LockoutEnabled.ToString());
            _return.AppendFormat("AccessFailedCount: {0}]", AccessFailedCount.ToString());
            return(_return.ToString());
        }
Beispiel #3
0
        public List <Claim> ToClaims()
        {
            var claims = new List <Claim>();

            claims.Add(new Claim("username", UserName));
            claims.Add(new Claim("creation-date", CreationDate.ToString("o")));
            claims.Add(new Claim("last-seen", LastSeen.ToString("o")));
            claims.Add(new Claim("last-edit", LastEdit.ToString("o")));
            claims.Add(new Claim("account-type", AccountType.ToString()));
            claims.Add(new Claim("account-status", AccountStatus.ToString()));
            claims.Add(new Claim("recovery-email", Email ?? string.Empty));
            claims.Add(new Claim("recovery-verified", EmailConfirmed.ToString()));
            claims.Add(new Claim("2fa-enabled", TwoFactorEnabled.ToString()));
            claims.Add(new Claim("pgp-public-key", PGPPublicKey ?? string.Empty));
            return(claims);
        }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (InvestorId?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PrimaryPhone?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (SecondaryPhone?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Fax?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (WebSite?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Company?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ContactPerson?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Logo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (SupervisingAuthority?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (RegistrationNo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (DomainFocus?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TurnOver?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (VatNumber?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (AddressTwo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (AddressOne?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ManagingDirector?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TargetMarket?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CustomerSizeFrom?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CustomerSizeTo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (LocalJurisdiction?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CommercialRegNo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (OtherMinRequirements?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CRR.GetHashCode());
            hashCode = hashCode * -1521134295 + (UploadCompliance?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (OtherMemberships?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (OtherDomainFocus?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (InvestorStatus?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (IAFC.GetHashCode());
            hashCode = hashCode * -1521134295 + (Prefix?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (UserName?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PasswordHash?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (SecurityStamp?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (EmailConfirmed.GetHashCode());
            hashCode = hashCode * -1521134295 + (LockoutEnabled.GetHashCode());
            hashCode = hashCode * -1521134295 + (PhoneNumberConfirmed.GetHashCode());
            hashCode = hashCode * -1521134295 + (TwoFactorEnabled.GetHashCode());
            hashCode = hashCode * -1521134295 + (AccessFailedCount?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Name?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Email?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PhoneNumber?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (LockoutEndDate?.GetHashCode() ?? 0);
            return(hashCode);
        }
Beispiel #5
0
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (UserName?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PasswordHash?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (SecurityStamp?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (EmailConfirmed.GetHashCode());
            hashCode = hashCode * -1521134295 + (LockoutEnabled.GetHashCode());
            hashCode = hashCode * -1521134295 + (PhoneNumberConfirmed.GetHashCode());
            hashCode = hashCode * -1521134295 + (TwoFactorEnabled.GetHashCode());
            hashCode = hashCode * -1521134295 + (AccessFailedCount?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Name?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Email?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PhoneNumber?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (LockoutEndDate?.GetHashCode() ?? 0);
            return(hashCode);
        }
Beispiel #6
0
        public override int GetHashCode()
        {
            int hashCode = 2113194632;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Email);

            hashCode = hashCode * -1521134295 + EmailConfirmed.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(PasswordHash);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(SecurityStamp);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(PhoneNumber);

            hashCode = hashCode * -1521134295 + PhoneNumberConfirmed.GetHashCode();
            hashCode = hashCode * -1521134295 + TwoFactorEnabled.GetHashCode();
            hashCode = hashCode * -1521134295 + LockoutEndDateUtc.GetHashCode();
            hashCode = hashCode * -1521134295 + LockoutEnabled.GetHashCode();
            hashCode = hashCode * -1521134295 + AccessFailedCount.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <ICollection <IdentityUserRole> > .Default.GetHashCode(Roles);

            hashCode = hashCode * -1521134295 + EqualityComparer <ICollection <IdentityUserClaim> > .Default.GetHashCode(Claims);

            hashCode = hashCode * -1521134295 + EqualityComparer <ICollection <IdentityUserLogin> > .Default.GetHashCode(Logins);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Id);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(UserName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Surname);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(JobTitle);

            return(hashCode);
        }