Ich kann nicht SQLite Treiber in meiner Sessionfactory arbeiten.FluentNhibernate und SQLite
ich heruntergeladen SQLite 1.0.48 von http://sqlite.phxsoftware.com/
Ich habe die Hinweise auf System.Data.SQLite in meinen Tests Projekt hinzugefügt. Diese
public static IPersistenceConfigurer GetSqlLiteConfigurer()
{
try
{
return SQLiteConfiguration
.Standard
.InMemory();
}
catch (Exception ex)
{
throw ex;
}
}
ist, wie ich den Projekteur erzeugen
Das Problem ist, wenn ich meine Session bauen bekomme ich folgende Fehlermeldung:
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()
Ich habe versucht, von SQLite-Version zu ändern, aber nicht behebe das Problem.
Ich kann nicht finden, was das Problem ist, und ich arbeite seit 2 Tagen daran.
Lassen Sie mich wissen, wenn Sie weitere Informationen benötigen.
Danke für die Hilfe!
Charles
Dank. Das hat das Problem für mich gelöst. – statenjason
Jetzt verfügbar als NuGet Package http: // nuget.org/List/Packages/SQLitex64 –