21 lines
1.1 KiB
XML
21 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
This template was written to work with NHibernate.Test.
|
|
Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it
|
|
for your own use before compile tests in VisualStudio.
|
|
-->
|
|
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
|
|
<session-factory name="NHibernate.Test">
|
|
<property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property>
|
|
<!-- DateTimeFormatString allows to prevent storing the fact that written date was having kind UTC,
|
|
which dodges the undesirable time conversion to local done on reads by System.Data.SQLite.
|
|
See https://system.data.sqlite.org/index.html/tktview/44a0955ea344a777ffdbcc077831e1adc8b77a36
|
|
and https://github.com/nhibernate/nhibernate-core/issues/1362 -->
|
|
<property name="connection.connection_string">
|
|
Data Source=nhibernate.db;
|
|
DateTimeFormatString=yyyy-MM-dd HH:mm:ss.FFFFFFF;
|
|
</property>
|
|
<property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
|
|
</session-factory>
|
|
</hibernate-configuration>
|