Below is the error messgae i get when trying to use an In Memory database for my unit testing.
SetUp : FluentNHibernate.Cfg.FluentConfigurationException : An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
----> NHibernate.HibernateException : Could not create the driver from NHibernate.Driver.SQLite20Driver, NHibernate, Version=3.3.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4. ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.ArgumentException : Unable to find the requested .Net Framework Data Provider. It may not be installed.
The error is thrown on the below line of code:
private ISessionFactory CreateSessionFactory()
{
return Fluently.Configure()
.Database(SQLiteConfiguration.Standard.InMemory().ShowSql())
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<Entity>())
.ExposeConfiguration(cfg => configuration = cfg)
.BuildSessionFactory();
}
I've looked everywhere and cant seem to find a solution to this problem. I am using Fluent NHibernate, NUnit and VS 2012.
Can anyone give me some quick easy advice on why my unit tests are failing on the return line of code above?
System.Data.SQLite
? – stuartd