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

Cache error with QueryForObject<T>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • DataMapper 1.6.1
    • DataMapper 1.6.2
    • DataMapper
    • None

    Description

      Reported by Kenneth Olsen and patch by Christopher DeGuise

      User _user = i.QueryForObject< User>( "stsGetOnEmail", email);

      When doing this, the error strikes:

      • I pass "1" as parameter in email, which will return NULL from db
      • I pass "1" again as parameter in email, which and the error pops up with: Unable to cast object of type 'System.Object' to type 'Domain.User'.

      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: