sqllite配置(参考别人)

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 
<configSections>
   
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler,NHibernate" requirePermission="false"/>   
 
</configSections>

 
<hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2">
   
<session-factory>

     
<property name="show_sql">false</property>
     
<property name="connection.release_mode">on_close</property>
     
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
     
<property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property>
     
<property name="connection.connection_string">Data Source=test.db;Version=3;</property>
     
<property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
     
<property name="query.substitutions">true=1;false=0</property>
     
   
</session-factory>
 
</hibernate-configuration>
</configuration>

posted on 2012-05-07 17:06  HOT SUMMER  阅读(760)  评论(0编辑  收藏  举报

导航