コード例 #1
0
        public DBConnection ResetConnection(DBConnection conn, ServerInfo sinfo)
        {
            if (sinfo == null)
            {
                return(conn);
            }

            AddinBackend.ResetConnection(conn, sinfo.Host, sinfo.Port);

            return(conn);
        }
コード例 #2
0
        public DBConnection ResetConnection(DBConnection conn, ServerInfo sinfo, string username, string password)
        {
            if (sinfo == null)
            {
                return(conn);
            }

            AddinBackend.ResetConnection(conn, sinfo.Host, sinfo.Port);
            AddinBackend.RunScript(conn, "login(" + username + ',' + password + ");");

            return(conn);
        }