Diagnostic Trace

You can enable trace logging with the following line of code:
MapRepository.Instance.EnableTraceLogging = true;

This will output all SQL queries and parameters to the console trace log.