title: How to configure SQLite to run with NHibernate where assembly resolves System.Data.SQLite?
body: <p>I am using the latest NHibernate 2.1.0Beta2.  I'm trying to unit test with SQLite and have the configuration set up as:</p>
  
  <pre><code>        Dictionary&lt;string, string&gt; properties = new Dictionary&lt;string, string&gt;();
          properties.Add("connection.driver_class", "NHibernate.Driver.SQLite20Driver");
          properties.Add("dialect", "NHibernate.Dialect.SQLiteDialect");
          properties.Add("connection.provider", "NHibernate.Connection.DriverConnectionProvider");
          properties.Add("query.substitutions", "true=1;false=0");
          properties.Add("connection.connection_string", "Data Source=test.db;Version=3;New=True;");
          properties.Add("proxyfactory.factory_class",
                         "NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu");
  
          configuration = new Configuration();
          configuration.SetProperties(properties);
  </code></pre>
  
  <p>When I try to run it, I get the following error:</p>
  
  <pre><code>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 &lt;qualifyAssembly/&gt; 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) in c:\CSharp\NH\nhibernate\src\NHibernate\Driver\ReflectionBasedDriver.cs: line 26
  at NHibernate.Driver.SQLite20Driver..ctor() in c:\CSharp\NH\nhibernate\src\NHibernate\Driver\SQLite20Driver.cs: line 28 
  </code></pre>
  
  <p>So it looks like I need to reference the assembly directly.  How would I do this so I don't get this error anymore?  </p>
  
  <p>I downloaded the latest assembly from here: <a href="http://sourceforge.net/projects/sqlite-dotnet2" rel="noreferrer">http://sourceforge.net/projects/sqlite-dotnet2</a>.</p>