AdapterSwitches.cs 954 B

123456789101112131415161718192021222324252627282930
  1. //------------------------------------------------------------------------------
  2. // <copyright file="AdapterSwitches.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">markash</owner>
  6. // <owner current="true" primary="false">laled</owner>
  7. //------------------------------------------------------------------------------
  8. #if DEBUG
  9. using System.Diagnostics;
  10. namespace System.Data.Common {
  11. internal static class AdapterSwitches {
  12. static private TraceSwitch _dataSchema;
  13. static internal TraceSwitch DataSchema {
  14. get {
  15. TraceSwitch dataSchema = _dataSchema;
  16. if (null == dataSchema) {
  17. _dataSchema = dataSchema = new TraceSwitch("Data.Schema", "Enable tracing for schema actions.");
  18. }
  19. return dataSchema;
  20. }
  21. }
  22. }
  23. }
  24. #endif