Your application uses LINQ to SQL to retrieve and update a data source. To debug, you want to be able to write all SQL commands to a window in a stand-alone WPF application. You need to access DataContext SQL commands and write to a custom file.

What should you do?

 Posted by Rajkatie on 10/26/2012 | Category: ADO.NET Interview questions | Views: 1767 | Points: 40
Select from following answers:
  1. Create an implementation of TextWriter that writes to a custom file. Set the Log property of the DataContext to an instance of this class.
  2. Create an implementation of TextWriter that writes to a custom file. Associate your TextWriter type with your DataContext class by applying the ProviderAttribute attribute.
  3. Create an implementation of TraceListener that writes to a custom file. Set the Log property of the DataContext to an instance of this class.
  4. All Above

Show Correct Answer


Source: Measureup.com | | Alert Moderator 

Comments or Responses

Login to post response