I’m trying to set up SQLite for unit testing with Fluent NHibernate as shown here but the table names isn’t being generated as I expected.
Some tables have schemas with dots inside which seems to break the generation. (Dots works perfectly well with Microsoft SQL Server which I have in my production environment.)
Example:
[Foo.Bar.Schema].[TableName]
Result:
TestFixture failed: System.Data.SQLite.SQLiteException : SQLite error
unknown database Foo
How do I instruct SQLite to translate the dots to underscores or something so I can run my unit tests?
(I’ve tried adding brackets to the schema names with no success)
You can use a convention
http://wiki.fluentnhibernate.org/Conventions
*UPDATED
You must use only one of he Apply methods.
*UPDATE 2
I don’t know I would recommend this but if you like to experiment this seems to work. Even more reflection 🙂