I use NHibernate mainly against the MSSQL database, where I used MSSQL schemas for different tables.
In NH mapping (HBM) files, I specified the schema for each table in the mapping as follows:
<?xml version="1.0"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
auto-import="true"
schema="xyz">
<class name="Customer">
<id name="Id">
<generator class="native" />
</id>
<property name="Name" />
</class>
</hibernate-mapping>
For my unit testing, I experimented with SQLite, however my mappings now do not work, since NH reports that the database "xyz" was not found.
I understand that there is a difference in the interpretation of schema , so what is NH interpretation / implementation and what is the best approach when using a schema?
BTW: An Internet search using keywords such as “nhibernate database schema” didn’t match anything.