c-treeDB API for C# - Developers Guide
Record Count
Use CTRecord.GetRecordCount() to retrieve the total number of records in a table. This is a read only property.
// check if table is empty
if (ARecord.GetRecordCount() > 0)
{
Console.Write("Table is not empty\n");
}