Perhaps IIdMapper should inherit from IColumnsMapper to get more overloads of Column(...). Regarding having Precision() and Scale() directly in IIdMapper, the underlying XML mapping also doesn't allow precision and scale and some other attributes on <id>. But perhaps that should be allowed.
Adam Bar
February 4, 2012 at 1:41 PM
XML mapping allows standard <column> mapping within <id> to set all the DDL options. Not all of them actually makes sense for primary keys (like unique, not-null or index), but some of them are useful and will be nice in mapping-by-code, too (apart from already mentioned precision and scale, length and sql-type are missing, too).
Possibility to set precision and scale for decimal id using mapping by code?
Now this is not possible:
it isn't also possible: