[ 
http://issues.apache.org/jira/browse/IBATISNET-131?page=comments#action_12359880
 ] 

Kyrill commented on IBATISNET-131:
----------------------------------

Source code - iBATIS-src-SVN-179390.zip

> It's impossible to specify different database providers for different 
> contexts.
> -------------------------------------------------------------------------------
>
>          Key: IBATISNET-131
>          URL: http://issues.apache.org/jira/browse/IBATISNET-131
>      Project: iBatis for .NET
>         Type: Bug
>   Components: DataAccess
>     Versions: DataAccess 1.6.1
>  Environment: .net 1.1 (WinXP SP2)
>     Reporter: Kyrill

>
> If you have the following dao.config:
> ...
> <context ...>
>   ...
>   <database>
>     <provider name="OleDb1.1">
> ...
> </context>
> <context...>
>   <database>
>     <provider name="sqlServer1.1">
> </context>
> for both contexts provider will be OleDb1.1
> Probably,
>  
> XmlNode node = 
> configurationScope.NodeContext.SelectSingleNode("//database/provider");
> should be 
> XmlNode node = 
> configurationScope.NodeContext.SelectSingleNode("./database/provider");
> (this is line 596 of  DomDaoManagerBuilder.cs (class  
> IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder))

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