I am trying to implement this solution: NHibernate-20-SQLite-and-In-Memory-Databases
The only problem is that we have hbms:
<class name="aTable" table="[dbo].[aTable]" mutable="true" lazy="false">
with [dbo] in the table name, because we are working with mssql, and this does not work with Sqlite.
I found this publication in the rhino-tools-dev group, where they talk about just removing the schema from the mapping, but classMapping.Schema does not exist on NH2.
There is classMapping.Table.Schema , but it seems to be read-only. For example, this does not work:
foreach (PersistentClass cp in configuration.ClassMappings) {
- Is there a way to tell Sqlite to ignore
[dbo] (I tried attach database :memory: as dbo , but that didn't seem to help)? - Alternatively, can I programmatically remove it from class mappings (unfortunately, changing hbms is not possible now)?
Nenad
source share