subsonic / SubSonic-3.0

SubSonic 3.0 for the .NET 3.5 Framework
http://subsonic.github.io/
558 stars 210 forks source link

Active Record generates strings for int 32 columns + mysql. #20

Closed ghost closed 15 years ago

ghost commented 15 years ago

Hi,

My int 32 id columns are being generated as strings, so the following doesnt compile unless I wrap my ID in quotes:

        var item = _webproject.SingleOrDefault(x => x.unique_ID == "16450000");

However, when debugging, this throws an error: "Object of type 'System.UInt32' cannot be converted to type 'System.String'." in public static _webproject SingleOrDefault single=results.ToList()[0];

Ta'

Bob

robconery commented 15 years ago

Fixed - thank you.