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

auto-result-map Bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • DataMapper 1.5
    • DataMapper 1.5.1
    • None
    • None

    Description

      Are you aware that field names conflict with property names when automapping columns? So a class written like:

      public class Customer
      {
      private int id;

      public int ID
      {
      get

      { return id; }

      set

      { id = value; }


      }
      }

      ... will cause iBATIS.NET to fail with:

      CustomerRepositoryTest.ShouldGetCustomerByID : IBatisNet.DataMapper.Exceptions.DataMapperException : Error automapping columns. Cause: Item has already been added. Key in dictionary: 'ID' Key being added: 'ID'
      ----> System.ArgumentException : Item has already been added. Key in dictionary: 'ID' Key being added: 'ID'

      Attachments

        Activity

          People

            gilles Gilles Bayon
            gilles Gilles Bayon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: