Executes a SQL query and returns its result set as a collection of objects of a non-persistent type specified by the generic type parameter.
A String value that specifies a SQL query.
A collection of non-persistent objects of the specified type that are instantiated with data obtained via the specified SQL query.
This method performs the following:
The GetObjectsFromQuery<T> method throws an exception if object members include any of the following:
To learn more about executing SQL queries in XPO and retrieving objects from query results, refer to Direct SQL Queries.