Hallo,
i am trying to implent this solution NHibernate-20-SQLite-and-In-Memory-Databases
the only problem is that we have hbm's like this
<class name="aTable" table="[dbo].[aTable]" mutable="true" lazy="false">
with [dbo] in the tablename because we are working with mssql and this does not work with Sqlite.
i found also this posting on the rhino-tools-dev group where they talk about just removing the schema from the mapping:
link to discussion
but on NH2 there doesn't seem to be a
classMapping.Schema
there is a
classMapping.Table.Schema
but it seems to be read-only.
e.g.
foreach (PersistentClass cp in configuration.ClassMappings) {
// Does not work - throws a
//System.IndexOutOfRangeException: Index was outside the bounds of the array.
cp.Table.Schema = "";
}
- Is there a way to tell Sqlite to
ignore the "dbo."
(i tried "attach datbase :memory: as dbo" but this didn't seem to help)
or
- can i programmatically remove it from the classmappings ?
(unfortunately changing the hbm's is not possible right now)