|
1 |
| -<?xml version="1.0" encoding="utf-8" ?> |
2 |
| -<configuration> |
3 |
| - <configSections> |
4 |
| - <section name="hibernate-configuration" |
5 |
| - type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" /> |
6 |
| - <section name="log4net" |
7 |
| - type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /> |
8 |
| - </configSections> |
9 |
| - |
10 |
| - <connectionStrings> |
11 |
| - <add name="TestConnectionString" |
12 |
| - connectionString="TestConnectionString-TestConnectionString" /> |
13 |
| - </connectionStrings> |
14 |
| - <runtime> |
15 |
| - <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" |
16 |
| - applies-to="v1.1.4322"> |
17 |
| - <qualifyAssembly partialName="System.Web" |
18 |
| - fullName="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
19 |
| - </assemblyBinding> |
20 |
| - <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" |
21 |
| - applies-to="v2.0.50727"> |
22 |
| - <qualifyAssembly partialName="System.Web" |
23 |
| - fullName="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
24 |
| - </assemblyBinding> |
25 |
| - |
26 |
| - </runtime> |
27 |
| - |
28 |
| - <!-- |
29 |
| - hibernate-configuration section |
30 |
| -
|
31 |
| - You don't need to change this section for your own use. |
32 |
| - You can write your own hibernate.cfg.xml to override all session-factory configuration. |
33 |
| - Templates are available in NHibernate.Config.Templates folder. |
34 |
| - --> |
35 |
| - <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> |
36 |
| - <bytecode-provider type="lcg"/> |
37 |
| - <reflection-optimizer use="true"/> |
38 |
| - <session-factory name="NHibernate.Test"> |
39 |
| - <!--<property name="query.factory_class">NHibernate.Hql.Classic.ClassicQueryTranslatorFactory, NHibernate</property> |
40 |
| ---> |
41 |
| - <property name="connection.provider">NHibernate.Test.DebugConnectionProvider, NHibernate.Test</property> |
42 |
| - <property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider, NHibernate</property> |
43 |
| - <property name="cache.use_query_cache">true</property> |
44 |
| - <property name="query.startup_check">false</property> |
45 |
| - <!-- |
46 |
| - The valid strings for Isolation can be found in the documentation for the System.Data.IsolationLevel |
47 |
| - Enumeration documentation. |
48 |
| - Use the member names - not the values. |
49 |
| - --> |
50 |
| - <property name="adonet.batch_size">10</property> |
51 |
| - <property name="connection.isolation">ReadCommitted</property> |
52 |
| - <property name="hbm2ddl.keywords">none</property> |
53 |
| - <property name="format_sql">true</property> |
54 |
| - |
55 |
| - <!-- This is the System.Data.dll provider for MSSQL Server --> |
56 |
| - <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property> |
57 |
| - <property name="connection.connection_string">Server=localhost\sqlexpress;initial catalog=nhibernate;Integrated Security=SSPI</property> |
58 |
| - |
59 |
| - <property name="show_sql">false</property> |
60 |
| - <property name="command_timeout">444</property> |
61 |
| - <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> |
62 |
| - <property name="adonet.wrap_result_sets">false</property> |
63 |
| - </session-factory> |
64 |
| - </hibernate-configuration> |
65 |
| - |
66 |
| - <!-- This section contains the log4net configuration settings --> |
67 |
| - <log4net debug="false"> |
68 |
| - |
69 |
| - <!-- Define some output appenders --> |
70 |
| - <appender name="trace" |
71 |
| - type="log4net.Appender.TraceAppender, log4net"> |
72 |
| - <layout type="log4net.Layout.PatternLayout,log4net"> |
73 |
| - <param name="ConversionPattern" |
74 |
| - value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n" /> |
75 |
| - </layout> |
76 |
| - </appender> |
77 |
| - |
78 |
| - <appender name="console" |
79 |
| - type="log4net.Appender.ConsoleAppender, log4net"> |
80 |
| - <layout type="log4net.Layout.PatternLayout,log4net"> |
81 |
| - <param name="ConversionPattern" |
82 |
| - value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n" /> |
83 |
| - </layout> |
84 |
| - </appender> |
85 |
| - |
86 |
| - <appender name="rollingFile" |
87 |
| - type="log4net.Appender.RollingFileAppender,log4net" > |
88 |
| - |
89 |
| - <param name="File" |
90 |
| - value="log.txt" /> |
91 |
| - <param name="AppendToFile" |
92 |
| - value="false" /> |
93 |
| - <param name="RollingStyle" |
94 |
| - value="Date" /> |
95 |
| - <param name="DatePattern" |
96 |
| - value="yyyy.MM.dd" /> |
97 |
| - <param name="StaticLogFileName" |
98 |
| - value="true" /> |
99 |
| - |
100 |
| - <layout type="log4net.Layout.PatternLayout,log4net"> |
101 |
| - <param name="ConversionPattern" |
102 |
| - value="%d [%t] %-5p %c - %m%n" /> |
103 |
| - </layout> |
104 |
| - </appender> |
105 |
| - |
106 |
| - <!-- Setup the root category, add the appenders and set the default priority --> |
107 |
| - |
108 |
| - <root> |
109 |
| - <priority value="WARN" /> |
110 |
| - <appender-ref ref="console" /> |
111 |
| - </root> |
112 |
| - |
113 |
| - <logger name="NHibernate.Hql.Ast.ANTLR"> |
114 |
| - <priority value="OFF" /> |
115 |
| - </logger> |
116 |
| - |
117 |
| - <logger name="NHibernate.SQL"> |
118 |
| - <level value="OFF" /> |
119 |
| - </logger> |
120 |
| - |
121 |
| - <logger name="NHibernate.AdoNet.AbstractBatcher"> |
122 |
| - <level value="OFF" /> |
123 |
| - </logger> |
124 |
| - |
125 |
| - <logger name="NHibernate.Tool.hbm2ddl.SchemaExport"> |
126 |
| - <level value="ERROR" /> |
127 |
| - </logger> |
128 |
| - </log4net> |
129 |
| - |
130 |
| - |
131 |
| -</configuration> |
132 |
| - |
133 |
| - |
134 |
| - |
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<configuration> |
| 3 | + <configSections> |
| 4 | + <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/> |
| 5 | + <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/> |
| 6 | + </configSections> |
| 7 | + |
| 8 | + <connectionStrings> |
| 9 | + <add name="TestConnectionString" connectionString="TestConnectionString-TestConnectionString"/> |
| 10 | + </connectionStrings> |
| 11 | + <runtime> |
| 12 | + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v1.1.4322"> |
| 13 | + <qualifyAssembly partialName="System.Web" fullName="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> |
| 14 | + </assemblyBinding> |
| 15 | + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v2.0.50727"> |
| 16 | + <qualifyAssembly partialName="System.Web" fullName="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> |
| 17 | + </assemblyBinding> |
| 18 | + |
| 19 | + </runtime> |
| 20 | + |
| 21 | + <!-- |
| 22 | + hibernate-configuration section |
| 23 | +
|
| 24 | + You don't need to change this section for your own use. |
| 25 | + You can write your own hibernate.cfg.xml to override all session-factory configuration. |
| 26 | + Templates are available in NHibernate.Config.Templates folder. |
| 27 | + --> |
| 28 | + <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> |
| 29 | + <bytecode-provider type="lcg"/> |
| 30 | + <reflection-optimizer use="true"/> |
| 31 | + <session-factory name="NHibernate.Test"> |
| 32 | + <!--<property name="query.factory_class">NHibernate.Hql.Classic.ClassicQueryTranslatorFactory, NHibernate</property> |
| 33 | +--> |
| 34 | + <property name="connection.provider">NHibernate.Test.DebugConnectionProvider, NHibernate.Test</property> |
| 35 | + <property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider, NHibernate</property> |
| 36 | + <property name="cache.use_query_cache">true</property> |
| 37 | + <property name="query.startup_check">false</property> |
| 38 | + <!-- |
| 39 | + The valid strings for Isolation can be found in the documentation for the System.Data.IsolationLevel |
| 40 | + Enumeration documentation. |
| 41 | + Use the member names - not the values. |
| 42 | + --> |
| 43 | + <property name="adonet.batch_size">10</property> |
| 44 | + <property name="connection.isolation">ReadCommitted</property> |
| 45 | + <property name="hbm2ddl.keywords">none</property> |
| 46 | + <property name="format_sql">true</property> |
| 47 | + |
| 48 | + <!-- This is the System.Data.dll provider for MSSQL Server --> |
| 49 | + <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property> |
| 50 | + <property name="connection.connection_string">Server=localhost\sqlexpress;initial catalog=nhibernate;Integrated Security=SSPI</property> |
| 51 | + |
| 52 | + <property name="show_sql">false</property> |
| 53 | + <property name="command_timeout">444</property> |
| 54 | + <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> |
| 55 | + <property name="adonet.wrap_result_sets">false</property> |
| 56 | + </session-factory> |
| 57 | + </hibernate-configuration> |
| 58 | + |
| 59 | + <!-- This section contains the log4net configuration settings --> |
| 60 | + <log4net debug="false"> |
| 61 | + |
| 62 | + <!-- Define some output appenders --> |
| 63 | + <appender name="trace" type="log4net.Appender.TraceAppender, log4net"> |
| 64 | + <layout type="log4net.Layout.PatternLayout,log4net"> |
| 65 | + <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/> |
| 66 | + </layout> |
| 67 | + </appender> |
| 68 | + |
| 69 | + <appender name="console" type="log4net.Appender.ConsoleAppender, log4net"> |
| 70 | + <layout type="log4net.Layout.PatternLayout,log4net"> |
| 71 | + <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/> |
| 72 | + </layout> |
| 73 | + </appender> |
| 74 | + |
| 75 | + <appender name="rollingFile" type="log4net.Appender.RollingFileAppender,log4net"> |
| 76 | + |
| 77 | + <param name="File" value="log.txt"/> |
| 78 | + <param name="AppendToFile" value="false"/> |
| 79 | + <param name="RollingStyle" value="Date"/> |
| 80 | + <param name="DatePattern" value="yyyy.MM.dd"/> |
| 81 | + <param name="StaticLogFileName" value="true"/> |
| 82 | + |
| 83 | + <layout type="log4net.Layout.PatternLayout,log4net"> |
| 84 | + <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/> |
| 85 | + </layout> |
| 86 | + </appender> |
| 87 | + |
| 88 | + <!-- Setup the root category, add the appenders and set the default priority --> |
| 89 | + |
| 90 | + <root> |
| 91 | + <priority value="WARN"/> |
| 92 | + <appender-ref ref="console"/> |
| 93 | + </root> |
| 94 | + |
| 95 | + <logger name="NHibernate.Hql.Ast.ANTLR"> |
| 96 | + <priority value="OFF"/> |
| 97 | + </logger> |
| 98 | + |
| 99 | + <logger name="NHibernate.SQL"> |
| 100 | + <level value="OFF"/> |
| 101 | + </logger> |
| 102 | + |
| 103 | + <logger name="NHibernate.AdoNet.AbstractBatcher"> |
| 104 | + <level value="OFF"/> |
| 105 | + </logger> |
| 106 | + |
| 107 | + <logger name="NHibernate.Tool.hbm2ddl.SchemaExport"> |
| 108 | + <level value="ERROR"/> |
| 109 | + </logger> |
| 110 | + </log4net> |
| 111 | + |
| 112 | + |
| 113 | +<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration> |
0 commit comments