Я не могу заставить драйвер SQLite работать в моей сессии.FluentNhibernate и 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;
}
}
Это, как я генерировать Configurer
Проблема заключается в том, когда я строю свою SessionFactory я получаю следующее сообщение об ошибке:
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 дней.
Дайте мне знать, если вам нужна дополнительная информация.
Спасибо за помощь!
Чарльз
Спасибо. Это решило проблему для меня. – statenjason
Теперь доступен как пакет NuGet http: // nuget.org/List/Packages/SQLitex64 –