Query Method (FCGeneric)
Causes the generic object to query the database table or view using the optionally specified data fields, filters, and sort orders
Causes the generic object to query the database table or view using the optionally specified data fields, filters, and sort orders
Overload List
Overload | Description |
---|---|
Query() | Causes the generic object to query the database table or view using the optionally specified data fields, filters, and sort orders |
Query(IDbTransaction) | Causes the generic object to query the database table or view using the specified active transaction and, optionally, specified data fields, filters, and sort orders |
Remarks
This method causes the generic object to query the database table or view using any specified data fields, filters, and/or sort orders. The query retrieves 0 or more rows.
For more information on controlling the number and type of fields returned, see the DataFields property documentation. To restrict a query by adding filters, see the documentation for the AppendFilter method overloads. To control the order in which rows are sorted, see the AppendSort method documentation.
NOTE: If you have traversed child objects from this generic, all children in the hierarchy will also be queried when this method is called. For example, if you wish to query the case object for one specific case, but also wish to get all related activity logs and the related contact, you would set up the case, activity_log, and contact generic objects (see example), and would only have to query the case generic object.
If more than one object that is to be queried at the same time and are not related, use the Query Method on the ClarifyDataSet instance from which this generate was created to ensure that the queries are optimized and are executed in the same transaction.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server family