NHibernate 2.0 配置
来源:互联网 发布:软件模块设计图 编辑:程序博客网 时间:2024/06/13 20:22
在使用NHibernate2.0的时候提示:“Could not find the dialect in the configuration”,经查找原因才知道2.0的配置的1.X稍有不同,
以下是2.0的配置:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="hibernate-configuration"
type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
</configSections>
<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=localhost;initial catalog=NHiberate; user=sa;password=sa; </property>
<!-- <property name="connection.connection_string">Data Source=./SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf </property> -->
<property name="show_sql">true </property>
<property name="dialect">NHibernate.Dialect.MsSql2000Dialect </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="Com.Vervidian.TIO.DataAccess"/>
</session-factory>
</hibernate-configuration>
</configuration>
不过有点不明白的就是2.0为什么要引用log4net.dll。即使我没用log4net;
- NHibernate 2.0 配置
- nhibernate配置
- NHibernate 配置
- Nhibernate配置
- Nhibernate 配置
- NHibernate的配置选项
- NHibernate的灵活配置
- NHibernate的灵活配置
- NHibernate的灵活配置
- NHibernate 配置属性
- NHibernate的灵活配置
- [转]NHibernate配置方法
- NHibernate配置入门
- NHibernate配置入门
- NHibernate的Access配置
- NHibernate 配置参数
- NHibernate映射配置
- NHibernate+Spring.net配置
- 靖国神社主页被中国黑客篡改——小饭,Beach,RichMan,s4t4n
- 做售前技术支持工作的心得
- mfc combo box 控件使用方法总结
- DDR&nandflash
- 收集的一些JAVA面试题,与大家分享
- NHibernate 2.0 配置
- MySQL的Illegal mix of collationsy异常原因和解决方法
- JAVA中的内存分配精讲
- 搜狐无线研发的朋友也爱看《走出软件作坊》
- 备忘- 在struts2下用urlrewritefilter的问题
- 对于scull_read的理解
- 学生成绩统计器
- 关于dropdownlist中动态添加Option问题
- 写出3种遍历一个list的方法,(使用for循环)