<?xml version="1.0" encoding="utf-8" ?> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > <session-factory name="NHibernate.Test"> <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> <property name="connection.connection_string"> <!--Data Source=EF673A1A766348B;Initial Catalog=Agia;Integrated Security=True--> server=172.16.0.132;Initial Catalog=AgiaDev;uid=sa;pwd=nrinri;;pooling=false </property> <property name="adonet.batch_size">10</property><!-- 指定批量更新的数量--> <property name="show_sql">false</property><!-- 控制台显示sql语句 --> <property name="format_sql">flase</property><!-- 格式化sql语句 --> <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property><!-- 数据库方言 --> <property name="use_outer_join">true</property><!-- 允许外连接抓取 --> <property name="command_timeout">60</property><!-- 默认超时时间 --> <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> <mapping assembly="Agia.Models"/> <mapping assembly="Agia.DAL"/> </session-factory> </hibernate-configuration>