22 lines
1.2 KiB
XML
22 lines
1.2 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 hibernate.cfg.xml. Change it
|
|
for your own use before compiling tests in Visual Studio.
|
|
-->
|
|
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
|
|
<session-factory name="NHibernate.Test">
|
|
<property name="connection.driver_class">NHibernate.Driver.SapSQLAnywhere17Driver</property>
|
|
<!-- Sap.Data.SQLAnywhere does not support re-enlisting in the same transaction, wrecking many usages
|
|
with NHibernate when both NHibernate and the connection performs auto-enlistment. Setting
|
|
"Enlist=false;" in the connection string solves this.
|
|
It also requires to have the MSDTC service running, even for transaction scopes using a
|
|
single connection. -->
|
|
<property name="connection.connection_string">
|
|
UID=DBA;PWD=sql;Server=localhost;DBN=nhibernate;DBF=c:\nhibernate.db;ASTOP=No;Enlist=false;
|
|
</property>
|
|
<property name="dialect">NHibernate.Dialect.SapSQLAnywhere17Dialect</property>
|
|
<property name="query.substitutions">true=1;false=0</property>
|
|
</session-factory>
|
|
</hibernate-configuration>
|