zoukankan      html  css  js  c++  java
  • 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>

  • 相关阅读:
    JSON
    FBV & CBV
    django Tips
    Django2.2
    cookie & session
    ajax请求
    视图函数
    模板语法
    模板继承、组件
    python之路-----多线程与多进程
  • 原文地址:https://www.cnblogs.com/wangchuang/p/2487683.html
Copyright © 2011-2022 走看看