Select from following answers:- Console.WriteLine(((ObjectQuery<Products>)result).ToTraceString());

- Console.WriteLine(context.ToString());
- Console.WriteLine(((EntityCommand)result).ToTraceString());
- 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. In the given example, you can cast the LINQ query to an ObjectQuery.
In this example, the given LINQ query cannot be cast to an EntityCommand object. This will throw an exception.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator