/// <summary> /// Get the Code Table Column Names /// </summary> /// <param name="tableName"></param> /// <returns></returns> public string[] GetCodeTableColumnNames(string tableName) { string[] retval = null; Util.Assert(tableName.StartsWith("meta") == false); DataTable dt = db.GetTableColumnSchema(tableName); int count = dt.Rows.Count; if (dt.Rows.Count > 0) { int index = dt.Columns.IndexOf("COLUMN_NAME"); retval = new string[count]; for (int i = 0; i < count; i++) { retval[i] = dt.Rows[i][index].ToString(); } } return(retval); }