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
 Assigned to: 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

Reply via email to