Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
DataMapper 1.6.1
-
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'.