[ http://issues.apache.org/jira/browse/IBATISNET-48?page=comments#action_63976 ] Rick commented on IBATISNET-48: -------------------------------
This is the exact same issue that I'm having over on http://issues.apache.org/jira/browse/IBATISNET-47 . Of course, Ron has explained it a whole lot better. SQLite huh? Never heard of it, but I'm off to go try it. > parameterDbTypeClass cannot be loaded from external assembly > ------------------------------------------------------------ > > Key: IBATISNET-48 > URL: http://issues.apache.org/jira/browse/IBATISNET-48 > Project: iBatis for .NET > Type: Bug > Versions: DataMapper 1.1 > Environment: [assembly: AssemblyVersion("1.1.458")] > Reporter: Ron Grabowski > Assignee: Gilles Bayon > > Inside of the Initialisation() method of Provider.cs, there is this code: > Assembly assembly = Assembly.Load(_assemblyName); > // [snip other code] > _parameterDbType = assembly.GetType(_parameterDbTypeClass, true); > The SQLite.NET provider uses System.Data.DbType for its parameterDbTypeClass. > Its not possible to specify this via the providers.config file even when > using the "class name, assembly name" naming: > <provider> > ... > parameterDbTypeClass="System.Data.DbType, System.Data" > ... > </provider> > When I use that syntax, I get the following exception: > [ConfigurationException: DaoManager could not configure providers. Provider > named "SQLite3" not found, failed. Cause: Could not load type > System.Data.DbType, System.Data from assembly SQLite.NET, > Version=0.21.1869.3794, Culture=neutral, PublicKeyToken=c273bd375e695f9c.] > The constructor for Finisar.SQLite.SQLiteParameter is: > public SQLiteParameter(string name, System.Data.DbType type); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira