Returns the name of the EntityDef Object on which the query is based.
A ResultSet can be based on either a QueryDef Object or an SQL string. A query that uses a QueryDef object must also have an associated EntityDef object, and thus this method returns the name of that object.
VBScript
resultset.LookupPrimaryEntityDefName
Perl
$resultset->LookupPrimaryEntityDefName();