-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why dapper return Int64 ? #524
Comments
What version of dapper are you using? I believe this is already addressed On Fri, 27 May 2016 08:51 天雨流芳, [email protected] wrote:
|
Thank you for your reply. You can try the following case: var sql = "select 1 as A;select 2 as B";
using (var multi = _db.Connection.QueryMultiple(sql))
{
var a = multi.Read<int>().Single();
var b = multi.Read<int>().Single();
} Is it because I am using the database is SQLite ?? |
Again, which version of dapper are you using? It would be worth trying To install a pre-release version from nuget, either use:
(in the package manager console), or if you are using the IDE UI tools, On 27 May 2016 at 09:28, 天雨流芳 [email protected] wrote:
Regards, Marc |
Now that I'm back at a PC, I've tested this locally, and I can confirm
However, the similar via the multi-reader is broken:
bigint); select cast(2 as bigint)")) I will investigate and fix. On 27 May 2016 at 09:53, Marc Gravell [email protected] wrote:
Regards, Marc |
Well, thank you for your answer . |
I'm re-opening this to track as I fix it. |
…until I get the latest tooling installed)
This will be fixed in any build after 1.50.0-rc2a. Until then: you may have to either a: cast the data in your RDBMS, or b: ask for a |
Above is wrong. and push a `System.InvalidCastException'
If I change the following way ,it's correct ?
Is a Bug ?
However, the query does not have this problem.
The text was updated successfully, but these errors were encountered: