No consigo que SQLite Driver funcione en mi sessionfactory.FluentNhibernate y SQLite
He descargado SQLite 1.0.48 de http://sqlite.phxsoftware.com/
He añadido las referencias a System.Data.SQLite en mi proyecto de pruebas.
public static IPersistenceConfigurer GetSqlLiteConfigurer()
{
try
{
return SQLiteConfiguration
.Standard
.InMemory();
}
catch (Exception ex)
{
throw ex;
}
}
Éste es cómo generar el configurador
El problema es cuando construyo mi SessionFactory me sale el siguiente error:
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()
he tratado de cambiar de versión de SQLite, pero no lo hizo arregla el problema
No puedo encontrar el problema y he estado trabajando en esto durante 2 días.
Avíseme si necesita más información.
¡Gracias por la ayuda!
Charles
Gracias. Esto resolvió el problema para mí. – statenjason
Ahora disponible como paquete NuGet http: // nuget.org/List/Packages/SQLitex64 –