<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
  <session-factory>
    <!-- properties -->
    <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
    <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
    <property name="connection.connection_string">server=.;uid=sa;pwd=123123;database=iBatisDemo;</property>
    <property name="dialect">NHibernate.Dialect.MsSqlCeDialect</property>
    <property name="show_sql">true </property>
    <property name="use_outer_join">true</property>
    <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>

    <!-- mapping files 领域对象映射文件所在程序集 -->
    <mapping assembly="NHibernate_hbm_xml"/>
  </session-factory>
</hibernate-configuration>