I need some help in identifying the default location for the SQLite
database. I do not want to specify the complete path for my database
as it always has to be next to the EXE.

If the example below has to work - where ABC.sqliteDB needs to be
located? Please note that I have not specified the absolute path, I am
just giving the name of the database in the connection string.

So - in other words - my questions is: does ABC.sqliteDB needs to be
located in MyDocuments or BIN directory with the calling exe's DLL or
other place?



<?xml version="1.0" encoding="utf-8"?>
<hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2" >
    <session-factory name="NHibernate.Test">
        <property
name="connection.provider">NHibernate.Connection.DriverConnectionProvider</
property>
        <property
name="connection.driver_class">NHibernate.Driver.SQLiteDriver</
property>

        <property name="connection.connection_string">
            Data Source= ABC.sqliteDB ;Version=3
        </property>

        <property name="dialect">NHibernate.Dialect.SQLiteDialect</
property>
        <property name="query.substitutions">true=1;false=0</property>
    </session-factory>
</hibernate-configuration>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to