views:

21

answers:

0

With C# 4 I am using CreateSQLQuery to do a simple select statement on a table with a tinyint. This is mapped to a byte on the C# side. When I run it, instead of 10 it will return 1 though, and if I use SQLYog with the same statement it works fine(returning 10 like it should). Thanks.

EDIT: I have now tried with HQL aswell with the same result.