You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org> on 2005/04/30 17:22:05 UTC

[jira] Closed: (IBATISNET-48) parameterDbTypeClass cannot be loaded from external assembly

     [ http://issues.apache.org/jira/browse/IBATISNET-48?page=all ]
     
Gilles Bayon closed IBATISNET-48:
---------------------------------

     Resolution: Duplicate
    Fix Version: DataMapper 1.2

Roberto have also fixed the size bug. All is in SVN.

> 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
>      Fix For: DataMapper 1.2

>
> 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