/// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                var hashCode = 41;
                // Suitable nullity checks etc, of course :)
                if (Uuid != null)
                {
                    hashCode = hashCode * 59 + Uuid.GetHashCode();
                }
                if (Username != null)
                {
                    hashCode = hashCode * 59 + Username.GetHashCode();
                }
                if (Name != null)
                {
                    hashCode = hashCode * 59 + Name.GetHashCode();
                }
                if (Surname != null)
                {
                    hashCode = hashCode * 59 + Surname.GetHashCode();
                }
                if (Email != null)
                {
                    hashCode = hashCode * 59 + Email.GetHashCode();
                }
                if (PhoneNumber != null)
                {
                    hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
                }
                if (Password != null)
                {
                    hashCode = hashCode * 59 + Password.GetHashCode();
                }
                if (HashedPassword != null)
                {
                    hashCode = hashCode * 59 + HashedPassword.GetHashCode();
                }

                hashCode = hashCode * 59 + IsDeleted.GetHashCode();
                if (DeletedTime != null)
                {
                    hashCode = hashCode * 59 + DeletedTime.GetHashCode();
                }
                if (Avatar != null)
                {
                    hashCode = hashCode * 59 + Avatar.GetHashCode();
                }
                if (LdapAuthenticationMode != null)
                {
                    hashCode = hashCode * 59 + LdapAuthenticationMode.GetHashCode();
                }
                if (Roles != null)
                {
                    hashCode = hashCode * 59 + Roles.GetHashCode();
                }
                return(hashCode);
            }
        }