Nhibernate和Sqlite数据库的使用
hibernate.cfg.xml配置文件Sample: <?xml version="1.0" encoding="utf-8" ?> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > <session-factory name="Rock"> <!-- properties --> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property> <property name="connection.driver_class">NHibernate.Driver.SQLite20Driver, NHibernate</property> <property name="connection.connection_string">Data Source= D:\Data\SQLite_DB\rock.db ;Version=3</property> <property name="dialect">NHibernate.Dialect.SQLiteDialect, NHibernate</property> <property name="query