Cache error with QueryForObject<T>
-----------------------------------
Key: IBATISNET-242
URL: https://issues.apache.org/jira/browse/IBATISNET-242
Project: iBatis for .NET
Issue Type: Bug
Components: DataMapper
Affects Versions: DataMapper 1.6.1
Reporter: Gilles Bayon
Assignee: Gilles Bayon
Fix For: DataMapper 1.6.2
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'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.