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

TypeHandlers for "System.Nullable(Of" fails with custom types

    XMLWordPrintableJSON

Details

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

    Description

      <typeHandler
      type="System.Nullable`1[[ATG.Money, ATG.Money]]" dbType="Currency" callback="ATG.Database.TypeHandlers.NullableMoneyTypeHandlerCallback, ATG.Database"/>

      This fails inside the function SplitTypeAndAssemblyNames. The function
      simply splits on the ',' to find the dll to load. If I change this
      function to check if it is a generic type string it works fine.

      if (typeAssemblyIndex < 0 || originalTypeName.Contains("`1[["))

      Attachments

        Activity

          People

            gilles Gilles Bayon
            schallm Michael T. Schall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: