Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
DataAccess 1.6.1
-
None
-
.net 1.1 (WinXP SP2)
Description
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))