Creates a new ObjectQuery<T> instance using the specified Entity SQL command as the initial query.
The Entity SQL query.
The ObjectContext on which to execute the query.
When your application generates Entity SQL queries at runtime, you should be aware of any command length limitations of the data source. Entity SQL does not enforce limitations on the length of the command text in queries.
The example in this topic is based on the Adventure Works Sales Model. The example shows how to construct an instance of the ObjectQuery<T> class.