Select from following answers:- Use the Visual Studio Profiling Tools.
- Log the string returned by retrieving the CommandText property on ObjectQuery<T> or EntityCommand objects.
- Use the SQL Server Profiler and log the string returned by calling the ToTraceString method on ObjectQuery<T> or EntityCommand objects.
- All Above
Use the ToTraceString method to view the store commands for an ObjectQuery in the Entity Framework. The ToTraceString method is also available on the EntityCommand class.
The SQL Server Profiler shows how SQL Server resolves queries internally. This allows administrators to see exactly what Transact-SQL statements are submitted to the server and how the server accesses the database to return result sets.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator