I want to map a double property so that I can store its value in SQL Server (Express edition). The default mapping will end up in sql float columns. I want to have DB columns of type decimal(18,6). But my problem is that I can't get it done through Fluent Mapping. Depending on mapping syntax SQL columns are either of type float or decimal(18,0). Here is a summary of what I got:
Map(x => x.Quantity); ---> float
Map(x => x.Quantity).Precision(18).Scale(6); ---> float
Map(x => x.Quantity).CustomSqlType("decimal").Precision(18).Scale(6); ---> decimal(18,0)
How can I set Precision and Scale when I map a double ?