When working with the Entity Framework, what can you use to retrieve the SQL of a query?
Interview question and answer by:
Rajkatie | Posted on: 8/4/2012 | Category:
ADO.NET Interview questions | Views: 566 | |
Points: 40
Select from following answers:- Use the ToTraceString method on the ObjectQuery object.
 - Add a TextWriter object to the Log property of ObjectContext.
- Set the Connection property of ObjectContext to a TextWriter object.
To view the SQL statements that are sent to the database with the Entity Framework, use the ToTraceString method on the QueryObject.
Show Correct Answer |
Source: MeasureUp.com |
|
Alert Moderator
Found interesting? Add this to: