Deprecated
This function is deprecated, and we recommend using the DB API: PrepareSQL function to prepare complex queries.
Returns the table name. TableName() is used for complex queries with calculated fields or joined tables.
Syntax
TableName()
Arguments
No arguments.
Return value
Returns the table name.
Example
Using a complex query:
dynamic tblProducts = GlobalVars.dal.Table("Products");
string sql = "select sum(UnitsInStock) as total, concat(Category,' ',ProductName) as FullProductName from ";
sql += tblProducts.TableName().ToString() + " group by country";
See also: