Select from following answers:- Create an implementation of TextWriter that writes to a custom file. Set the Log property of the DataContext to an instance of this class.

- Create an implementation of TextWriter that writes to a custom file. Associate your TextWriter type with your DataContext class by applying the ProviderAttribute attribute.
- Create an implementation of TraceListener that writes to a custom file. Set the Log property of the DataContext to an instance of this class.
- All Above
You can view the SQL code generated for queries and change processing by using the Log property. You must set the Log property to an instance of a TextWriter implementation. This can be a custom implementation.
You must set the Log property to an instance of a TextWriter implementation, not a TraceListener.
Show Correct Answer
Source: Measureup.com | |
Alert Moderator