关注开源代码的实际应用
- <?xml version="1.0" encoding="utf-8" ?>
- <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
- <session-factory name="NHibernate.Test">
- <!-- properties -->
- <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
- <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
- <property name="connection.dialect">NHibernate.Dialect.MsSql2005Dialect</property>
- <property name="hibernate.bytecode.provider">lcg</property><!-- Important under Medium Trust -->
- <property name="connection.connection_string">Data Source=localhost;Initial Catalog=nhibernate;Integrated Security=True</property>
- <property name="show_sql">true</property>
- <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
- <property name="use_outer_join">true</property>
- <!--
- these are different than the values in app.config so I can verify these
- are being picked up
- -->
- <property name="command_timeout">300</property>
- <property name="query.substitutions">true=1, false=0, yes=1, no=0</property>
- <!-- mapping files -->
- <!-- are now optional
- <mapping file="ABC.hbm.xml" />
- <mapping resource="NHibernate.DomainModel.Simple.hbm.xml" assembly="NHibernate.DomainModel" />
- -->
- </session-factory>
- </hibernate-configuration>