Я не могу заставить драйвер SQLite работать в моей сессии.
Я скачал SQLite 1.0.48 с сайта http://sqlite.phxsoftware.com/.
Я добавил ссылки на System.Data.SQLite в свой проект Tests.
public static IPersistenceConfigurer GetSqlLiteConfigurer()
{
try
{
return SQLiteConfiguration
.Standard
.InMemory();
}
catch (Exception ex)
{
throw ex;
}
}
Вот как я генерирую конфигуратор
Проблема в том, что когда я создаю свою сессионную фабрику, я получаю следующую ошибку:
NHibernate.HibernateException: The IDbCommand and IDbConnection implementation in the assembly System.Data.SQLite could not be found. Ensure that the assembly System.Data.SQLite is located in the application directory or in the Global Assembly Cache. If the assembly is in the GAC, use <qualifyAssembly/> element in the application configuration file to specify the full name of the assembly.
at NHibernate.Driver.ReflectionBasedDriver..ctor(String driverAssemblyName, String connectionTypeName, String commandTypeName)
at NHibernate.Driver.SQLite20Driver..ctor()
Я попытался изменить версию SQLite, но не решил проблему.
Я не могу найти, в чем проблема, и я работаю над этим уже 2 дня.
Дайте мне знать, если вам нужна дополнительная информация.
Спасибо за помощь!
Чарльз