Advertisement
Guest User

gentle.config

a guest
Jan 29th, 2012
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Gentle.Framework>
  3. <!-- See the API documentation for the Gentle.Framework.GentleSettings class for
  4. detailed information on the keys available in the Options section -->
  5. <Options>
  6. <!-- the default timeout value in seconds for IDbCommand instances created by Gentle -->
  7. <CommandTimeout>30</CommandTimeout>
  8. <!-- whether to enable support for Gentle-managed concurrency control columns -->
  9. <ConcurrencyControl>false</ConcurrencyControl>
  10. <!-- options: Attributes or XML (XML currently unused) -->
  11. <MasterDefinition>Attributes</MasterDefinition>
  12. <Analyzer>
  13. <!-- options: None, OnDemand (the default), Full -->
  14. <Level>OnDemand</Level>
  15. <!-- whether to warn about unmapped columns and other non-fatal errors -->
  16. <Silent>false</Silent>
  17. </Analyzer>
  18. <Cache>
  19. <!-- default cache strategy (use only Never or Temporary) -->
  20. <DefaultStrategy>Temporary</DefaultStrategy>
  21. <CacheStatements>true</CacheStatements>
  22. <CacheObjects>true</CacheObjects>
  23. <!-- when true Gentle will try to bypass query execution and compose
  24. the result from cached data alone -->
  25. <SkipQueryExecution>true</SkipQueryExecution>
  26. <!-- the scope within which to ensure uniqing
  27. options: Thread (default), Application or WebSession -->
  28. <UniqingScope>Application</UniqingScope>
  29. </Cache>
  30. <Logging>
  31. <!-- This setting controls the lowest log level emitted. See the
  32. Verbosity enum for details on the available values. -->
  33. <Verbosity>Warning</Verbosity>
  34. <!-- Do not edit this unless you know what you're doing. This setting
  35. controls at what level error conditions are considered fatal. -->
  36. <Frailty>Warning</Frailty>
  37. <!-- Use values defined in the LogCategories enum to turn logging on/off
  38. for selected categories. The available values include:
  39. All (all categories)
  40. StatementExecutionRead (select statements)
  41. StatementExecutionWrite (insert/update/delete statements)
  42. StatementExecutionOther (any other kind of statement)
  43. StatementExecution (any kind of statement; same as all three groups above)
  44. Cache (cache accesses)
  45. Metadata (metadata updates)
  46. General (everything else) -->
  47. <!-- The following sample first disables all categories, then selectively
  48. turns on various subcategories -->
  49. <Category name="All" enabled="false" />
  50. <Category name="StatementExecution" enabled="false" />
  51. <Category name="Cache" enabled="false" />
  52. <Category name="Metadata" enabled="false" />
  53. </Logging>
  54. </Options>
  55. <!--
  56. <NamespaceProviders>
  57. <Namespace namespace="Gentle.First" provider="SQLServer" connectionstring="..." />
  58. <Namespace namespace="Gentle.Second" provider="SQLServer" connectionString="..." />
  59. </NamespaceProviders>
  60. -->
  61. <DefaultProvider name="MySQL" connectionString="Server=127.0.0.1;Database=MpTvDbRC2;User ID=sa;Password=sa;charset=utf8;Connection Timeout=300;" />
  62. <!--
  63. <DefaultProvider name="Firebird" connectionString="User=SYSDBA;Password=masterkey;Data Source=TvLibrary.fdb;ServerType=1;Charset=UNICODE_FSS;" />
  64. <DefaultProvider name="Jet" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Code\Gentle.NET\Source\Gentle.Framework.Tests\Database Files\Gentle_MSAccess.mdb;OLE DB Services=-1;" />
  65. <DefaultProvider name="MySQL" connectionString="Server=10.0.0.2;Database=test;User ID=xxx;Password=xxx" />
  66. <DefaultProvider name="PostgreSQL" connectionString="Server=10.0.0.2;Database=Test;User ID=xxx;Password=xxx" />
  67. <DefaultProvider name="Oracle" connectionString="Data Source=kermit.symbiote.sporadicism.com,1521;User ID=gentle;password=xxx" />
  68. <DefaultProvider name="OracleODP" connectionString="Data Source=kermit.symbiote.sporadicism.com,1521;User ID=gentle;password=xxx" />
  69. <DefaultProvider name="SQLite" connectionString="URI=file:c:/Code/Gentle.NET/Source/Gentle.Framework.Tests/Database Files/Gentle_SQLite.db" />
  70. <DefaultProvider name="SQLServer" connectionString="data source=127.0.0.1;initial catalog=Test;user id=xxx;password=xxx;packet size=4096" />
  71.  
  72. <DefaultProvider name="SQLServer" connectionString="data source=127.0.0.1;initial catalog=Test;user id=xxx;password=xxx;packet size=4096" />
  73. -->
  74. <!-- IMPORTANT: You must uncomment ONLY the providers that you will be using. If a provider
  75. is defined below, but Gentle cannot find or load the associated library, an exception
  76. will most likely be raised! -->
  77. <Providers>
  78. <!-- list known provider assemblies; the assembly .dll suffix is optional -->
  79. <!-- Provider name="CE" assembly="Gentle.Provider.CE" /-->
  80. <!-- Provider name="Firebird" assembly="Gentle.Provider.Firebird" /-->
  81. <!-- Provider name="Jet" assembly="Gentle.Provider.Jet" /-->
  82. <Provider name="MySQL" assembly="Gentle.Provider.MySQL.dll" />
  83. <!-- Provider name="Oracle" assembly="Gentle.Provider.Oracle" /-->
  84. <!-- Provider name="OracleODP" assembly="Gentle.Provider.OracleODP" /-->
  85. <!-- Provider name="PostgreSQL" assembly="Gentle.Provider.PostgreSQL" /-->
  86. <!-- Provider name="SQLite" assembly="Gentle.Provider.SQLite" / -->
  87. <Provider name="SQLServer" assembly="Gentle.Provider.SQLServer" />
  88. <!-- Provider name="Sybase" assembly="Gentle.Provider.Sybase" / -->
  89. <!-- Provider name="SybaseASA" assembly="Gentle.Provider.SybaseASA" / -->
  90. </Providers>
  91. </Gentle.Framework>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement