|
1 |
| -<?xml version="1.0"?> |
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 |
| - |
12 |
| - <!-- |
13 |
| - hibernate-configuration section |
14 |
| -
|
15 |
| - You don't need to change this section for your own use. |
16 |
| - You can write your own hibernate.cfg.xml to override all session-factory configuration. |
17 |
| - Templates are available in NHibernate.Config.Templates folder. |
18 |
| - --> |
19 |
| - <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> |
20 |
| - <bytecode-provider type="lcg"/> |
21 |
| - <reflection-optimizer use="true"/> |
22 |
| - <session-factory name="NHibernate.Test"> |
23 |
| - <property name="connection.provider">NHibernate.Test.DebugConnectionProvider, NHibernate.Search.Tests</property> |
24 |
| - <property name="connection.isolation">ReadCommitted</property> |
25 |
| - |
26 |
| - <!-- This is the System.Data.dll provider for MSSQL Server --> |
27 |
| - <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property> |
28 |
| - <property name="connection.connection_string">Server=.\sqlexpress;initial catalog=nhsearch;Integrated Security=SSPI</property> |
29 |
| - <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> |
30 |
| - <property name="adonet.batch_size">10</property> |
31 |
| - <property name="prepare_sql">false</property> |
32 |
| - <property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider, NHibernate</property> |
33 |
| - <property name="cache.use_query_cache">true</property> |
34 |
| - <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property> |
35 |
| - |
36 |
| - <!-- the following part is not read by the test, they are here being a template--> |
37 |
| - <listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-insert"/> |
38 |
| - <listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-update"/> |
39 |
| - <listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-delete"/> |
40 |
| - <listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-recreate"/> |
41 |
| - <listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-remove"/> |
42 |
| - <listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-update"/> |
43 |
| - </session-factory> |
44 |
| - </hibernate-configuration> |
45 |
| - |
46 |
| - <!-- This section contains the log4net configuration settings --> |
47 |
| - <log4net debug="false"> |
48 |
| - <appender name="trace" type="log4net.Appender.TraceAppender, log4net"> |
49 |
| - <layout type="log4net.Layout.PatternLayout,log4net"> |
50 |
| - <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/> |
51 |
| - </layout> |
52 |
| - </appender> |
53 |
| - |
54 |
| - <appender name="console" type="log4net.Appender.ConsoleAppender, log4net"> |
55 |
| - <layout type="log4net.Layout.PatternLayout,log4net"> |
56 |
| - <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/> |
57 |
| - </layout> |
58 |
| - </appender> |
59 |
| - |
60 |
| - <appender name="rollingFile" type="log4net.Appender.RollingFileAppender,log4net"> |
61 |
| - <param name="File" value="log.txt"/> |
62 |
| - <param name="AppendToFile" value="false"/> |
63 |
| - <param name="RollingStyle" value="Date"/> |
64 |
| - <param name="DatePattern" value="yyyy.MM.dd"/> |
65 |
| - <param name="StaticLogFileName" value="true"/> |
66 |
| - |
67 |
| - <layout type="log4net.Layout.PatternLayout,log4net"> |
68 |
| - <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/> |
69 |
| - </layout> |
70 |
| - </appender> |
71 |
| - |
72 |
| - <!-- Setup the root category, add the appenders and set the default priority --> |
73 |
| - <root> |
74 |
| - <priority value="WARN"/> |
75 |
| - <appender-ref ref="rollingFile"/> |
76 |
| - </root> |
77 |
| - |
78 |
| - <logger name="NHibernate.Bytecode.CodeDom"> |
79 |
| - <priority value="OFF"/> |
80 |
| - </logger> |
81 |
| - |
82 |
| - <logger name="NHibernate.SQL"> |
83 |
| - <level value="OFF"/> |
84 |
| - </logger> |
85 |
| - |
86 |
| - <logger name="NHibernate.Tool.hbm2ddl.SchemaExport"> |
87 |
| - <level value="WARN"/> |
88 |
| - </logger> |
89 |
| - </log4net> |
90 |
| - |
91 |
| - <runtime> |
92 |
| - <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v1.1.4322"> |
93 |
| - <qualifyAssembly partialName="System.Web" fullName="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> |
94 |
| - </assemblyBinding> |
95 |
| - <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v2.0.50727"> |
96 |
| - <qualifyAssembly partialName="System.Web" fullName="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> |
97 |
| - </assemblyBinding> |
98 |
| - </runtime> |
99 |
| -<startup><supportedRuntime version="v2.0.50727"/></startup></configuration> |
| 1 | +<?xml version="1.0"?> |
| 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 | + |
| 12 | + <!-- |
| 13 | + hibernate-configuration section |
| 14 | +
|
| 15 | + You don't need to change this section for your own use. |
| 16 | + You can write your own hibernate.cfg.xml to override all session-factory configuration. |
| 17 | + Templates are available in NHibernate.Config.Templates folder. |
| 18 | + --> |
| 19 | + <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> |
| 20 | + <bytecode-provider type="lcg"/> |
| 21 | + <reflection-optimizer use="true"/> |
| 22 | + <session-factory name="NHibernate.Test"> |
| 23 | + <property name="connection.provider">NHibernate.Test.DebugConnectionProvider, NHibernate.Search.Tests</property> |
| 24 | + <property name="connection.isolation">ReadCommitted</property> |
| 25 | + |
| 26 | + <!-- This is the System.Data.dll provider for MSSQL Server --> |
| 27 | + <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property> |
| 28 | + <property name="connection.connection_string">Server=.\sqlexpress;initial catalog=nhsearch;Integrated Security=SSPI</property> |
| 29 | + <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> |
| 30 | + <property name="adonet.batch_size">10</property> |
| 31 | + <property name="prepare_sql">false</property> |
| 32 | + <property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider, NHibernate</property> |
| 33 | + <property name="cache.use_query_cache">true</property> |
| 34 | + <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property> |
| 35 | + |
| 36 | + <!-- the following part is not read by the test, they are here being a template--> |
| 37 | + <listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-insert"/> |
| 38 | + <listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-update"/> |
| 39 | + <listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-delete"/> |
| 40 | + <listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-recreate"/> |
| 41 | + <listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-remove"/> |
| 42 | + <listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-update"/> |
| 43 | + </session-factory> |
| 44 | + </hibernate-configuration> |
| 45 | + |
| 46 | + <!-- This section contains the log4net configuration settings --> |
| 47 | + <log4net debug="false"> |
| 48 | + <appender name="trace" type="log4net.Appender.TraceAppender, log4net"> |
| 49 | + <layout type="log4net.Layout.PatternLayout,log4net"> |
| 50 | + <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/> |
| 51 | + </layout> |
| 52 | + </appender> |
| 53 | + |
| 54 | + <appender name="console" type="log4net.Appender.ConsoleAppender, log4net"> |
| 55 | + <layout type="log4net.Layout.PatternLayout,log4net"> |
| 56 | + <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/> |
| 57 | + </layout> |
| 58 | + </appender> |
| 59 | + |
| 60 | + <appender name="rollingFile" type="log4net.Appender.RollingFileAppender,log4net"> |
| 61 | + <param name="File" value="log.txt"/> |
| 62 | + <param name="AppendToFile" value="false"/> |
| 63 | + <param name="RollingStyle" value="Date"/> |
| 64 | + <param name="DatePattern" value="yyyy.MM.dd"/> |
| 65 | + <param name="StaticLogFileName" value="true"/> |
| 66 | + |
| 67 | + <layout type="log4net.Layout.PatternLayout,log4net"> |
| 68 | + <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/> |
| 69 | + </layout> |
| 70 | + </appender> |
| 71 | + |
| 72 | + <!-- Setup the root category, add the appenders and set the default priority --> |
| 73 | + <root> |
| 74 | + <priority value="WARN"/> |
| 75 | + <appender-ref ref="rollingFile"/> |
| 76 | + </root> |
| 77 | + |
| 78 | + <logger name="NHibernate.Bytecode.CodeDom"> |
| 79 | + <priority value="OFF"/> |
| 80 | + </logger> |
| 81 | + |
| 82 | + <logger name="NHibernate.SQL"> |
| 83 | + <level value="OFF"/> |
| 84 | + </logger> |
| 85 | + |
| 86 | + <logger name="NHibernate.Tool.hbm2ddl.SchemaExport"> |
| 87 | + <level value="WARN"/> |
| 88 | + </logger> |
| 89 | + </log4net> |
| 90 | + |
| 91 | + <runtime> |
| 92 | + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v1.1.4322"> |
| 93 | + <qualifyAssembly partialName="System.Web" fullName="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> |
| 94 | + </assemblyBinding> |
| 95 | + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v2.0.50727"> |
| 96 | + <qualifyAssembly partialName="System.Web" fullName="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> |
| 97 | + </assemblyBinding> |
| 98 | + </runtime> |
| 99 | +<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration> |
0 commit comments