Code
<?xmlversion="1.0"encoding="utf-8"?>
<configuration>
<configSections>
<sectionname="hibernate-configuration"
type="NHibernate.Cfg.ConfigurationSectionHandler,NHibernate"/>
</configSections>
<hibernate-configurationxmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<propertyname="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory,NHibernate.ByteCode.LinFu</property>
<propertyname="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<propertyname="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<propertyname="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
<propertyname="show_sql">true</property>
<propertyname="connection.connection_string">Server=.;initialcatalog=NH_DateBase;user=sa;password=sa;</property>
<propertyname="adonet.batch_size">500</property>
<propertyname="generate_statistics">true</property>
<propertyname="use_outer_join">true</property>
<propertyname="command_timeout">60</property>
<mappingassembly="NH.Model"/><!--*****这个地方一定要加*****-->
</session-factory>
</hibernate-configuration>
</configuration>若果采用App.config配置,则必须加<mapping assembly="NH.Model"/>来映射你的实体层。
优质内容筛选与推荐>>
1、内存问题检测神器:Valgrind2、定义文字用em、rem,效果和px一样3、多项选择框 汇在一处 1.//逐个列举 可设置每个样式 2. //统一显现4、rpx单位与移动设备分辨率5、Struts2中validate数据校验的两种常用方法