I have a project where I’m using Fluent NHibernate to map an SQL Server database and I generate data from another Fluent NHibernate mapped SQL Server database which is our source.
I’m currently writing some unit tests which is to check the functions that read from one database and create records in the other.
I’ve created an in-memory SQLite database of my db for creating records, and it works fine. But when I try to create a similar SQLite database for my “source” database I get failures which claim “no such table”.
This seems to be because in the Fluent NHibernate dll for the source database they’ve given names like “dbo.table” and since there’s no schema in my SQLite test database it’s not able to create a test table.
Is there a way to handle this “dbo.” name in SQLite when creating the test database?
is the same as:
To make that work, you would need to attach another database named
dbo, like this:Alternatively, wrap the table names in quotes (if that is possible with NHibernate), so that the point is part of the table name: