You are right http://dev.mysql.com/doc/refman/5.5/en/numeric-types.html
<http://dev.mysql.com/doc/refman/5.5/en/numeric-types.html>So we have to fix this line RegisterColumnType(DbType.Currency, "MONEY"); On Tue, Mar 29, 2011 at 11:52 AM, tpynegar <[email protected]> wrote: > Hi, > > I'm going through a book tutorial which is based on SQLServer 2008 and > everything is running fine. I thought i'd change over to use MySQL 5 > by changing the dialect and the sql script it's generating is throwing > errors. > > The mapping is as below > > <property name="UnitPrice" not-null="true" type="Currency" /> > > and this is generating > > UnitPrice MONEY not null, > > I'm not sure about this but i don't think there is a MONEY type in > MySQL and people normally use Decimal with some kind of precision. > > Should i specify some other type in the mapping for it to work on > MySQL ? > > Thanks, > Tim. > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
