/// <summary> /// 测试连接 /// </summary> /// <param name="connectstring"></param> public void TestConnection(ConnectString connectstring) { string sql = "select 1 from dual"; gateway.ExecuteScalar(connectstring, sql); }