You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Specified cast is not valid when using QueryAsync #346
However, I am unable to get it to work with QueryAsync. It always fails with "The specified cast is not valid" exception. What is the correct way to use the Async version of above code?
Note: I am able get QueryAsync to work when using complex types, but fails for simple types like in above example
Hmm, @mgravell, is this just a case of needing to add the ChangeType fallback to where the async results are read? I assume the DB is actually returning something that isn't directly a long in this case, like the situations that required the change in the synchronous code before.
Activity
tms commentedon Sep 29, 2015
Hmm, @mgravell, is this just a case of needing to add the
ChangeTypefallback to where the async results are read? I assume the DB is actually returning something that isn't directly alongin this case, like the situations that required the change in the synchronous code before.NickCraver commentedon Oct 10, 2015
@tms yep pretty close - I was making sure this wasn't already solved somewhere but it has been - in PR #338. I'll merge it in shortly.
Add unit test for #346 addressed by #338