public void GetTableNameFromOid_Test()
        {
            using (CUBRIDConnection conn = new CUBRIDConnection())
            {
                LogTestStep("Get table name from a specified Oid");
                conn.ConnectionString = DBHelper.connString;
                conn.Open();

                string tableName = conn.GetTableNameFromOID("@620|1|0");

                Assert.AreEqual("game", tableName);
                LogStepPass();

                LogTestResult();
            }
        }
示例#2
0
    /// <summary>
    /// Test Table name from OID
    /// </summary>
    private static void Test_GetTableNameFromOid()
    {
      using (CUBRIDConnection conn = new CUBRIDConnection())
      {
        conn.ConnectionString = TestCases.connString;
        conn.Open();

        string tableName = conn.GetTableNameFromOID("@620|1|0");

        Debug.Assert(tableName == "record");
      }
    }