Your application uses Entity Framework to retrieve and update a SQL Server database. Some operations against the data source take several seconds to execute. You need to examine the SQL commands that Entity Framework executes against the database.

What should you do?

 Posted by Rajkatie on 10/11/2012 | Category: ADO.NET Interview questions | Views: 2196 | Points: 40
Select from following answers:
  1. Use the Visual Studio Profiling Tools.
  2. Log the string returned by retrieving the CommandText property on ObjectQuery<T> or EntityCommand objects.
  3. Use the SQL Server Profiler and log the string returned by calling the ToTraceString method on ObjectQuery<T> or EntityCommand objects.
  4. All Above

Show Correct Answer

Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response