Dear all,
Google cannot help me. I will try here. :-)
Did someone ever experience the following exception?
Code:
Unable to cast object of type 'NHibernate.JetDriver.JetDbConnection' to type 'System.Data.Common.DbConnection'.
(System.InvalidCastException)
I'm using NHibernate 2.0.1.4000, NHibernate.JetDriver 2.0.0.1001 compiled by me, connecting to an Access database
Code:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Database.mdb;Persist Security Info=True
The exception is throw by the command
Code:
hbm2ddl.SchemaUpdate.Execute(false, true)
command; any other operation (hbm2ddl.SchemaExport.Execute and CRUD ops.) works fine.
Any advice, please?
Is it possible that NHibernate.JetDriver module is not ready for SchemaUpdate operation?
Thank you for your time.
Nicola