public override bool Equals(ISessionDatabaseConfiguration obj)
        {
            if ((object)this == (object)obj)
            {
                return(true);
            }

            if (obj == null)
            {
                return(false);
            }

            if (GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (MySQLSessionDatabaseConfiguration)obj;

            return(SessionUser == other.SessionUser &&
                   SessionPassword == other.SessionPassword &&
                   Server == other.Server &&
                   Schema == other.Schema &&
                   ImplementsElevatedPrivilegesOperations == other.ImplementsElevatedPrivilegesOperations &&
                   UsedAuthenticationMode == other.UsedAuthenticationMode &&
                   SessionAdvancedSettings == other.SessionAdvancedSettings);
        }
        public override bool Equals(ISessionDatabaseConfiguration obj)
        {
            if ((object)this == (object)obj)
            {
                return(true);
            }

            if (obj == null)
            {
                return(false);
            }

            if (GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (SessionDatabaseConfiguration)obj;

            return(SessionUser == other.SessionUser &&
                   SessionPassword == other.SessionPassword &&
                   Server == other.Server &&
                   Catalog == other.Catalog &&
                   DeleteExpiredSessionsAvoidLockRowCount == other.DeleteExpiredSessionsAvoidLockRowCount &&
                   ImplementsElevatedPrivilegesOperations == other.ImplementsElevatedPrivilegesOperations &&
                   AuthenticationMode == other.AuthenticationMode &&
                   SessionAdvancedSettings == other.SessionAdvancedSettings);
        }
예제 #3
0
        public override bool Equals(ISessionDatabaseConfiguration obj)
        {
            if ((object)this == (object)obj)
            {
                return(true);
            }

            if (obj == null)
            {
                return(false);
            }

            if (GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (SessionDatabaseConfiguration)obj;

            return(SessionUser == other.SessionUser &&
                   SessionPassword == other.SessionPassword &&
                   Host == other.Host &&
                   Port == other.Port &&
                   ServiceName == other.ServiceName &&
                   SessionTablespace == other.SessionTablespace &&
                   ImplementsElevatedPrivilegesOperations == other.ImplementsElevatedPrivilegesOperations &&
                   AuthenticationMode == other.AuthenticationMode &&
                   SessionAdvancedSettings == other.SessionAdvancedSettings &&
                   NLS_Language == other.NLS_Language &&
                   NLS_Territory == other.NLS_Territory);
        }