Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-131

It's impossible to specify different database providers for different contexts.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • DataAccess 1.6.1
    • DataAccess 1.7
    • DataAccess
    • 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))

      Attachments

        Activity

          People

            Unassigned Unassigned
            rook Kyrill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: