Craig,
It can be done, but I'm sorry to say there's simple way. I'm afraid the built-in DbAdapters have type conversion kinda baked in. You would need to create your own custom IDbAdapter. It implements:
object ConvertToDb(object value);
object ConvertFromDb(object value, Type toType);
Look here for an example of how these are built:
Notice the typeConverter variable; it's set to a MySqlValueConverter. Let's look at that:
Notice this element: { typeof(DateTime), new DateTimeTicksType() } which refers to this:
So you would create DateTimeStringType and a use that in a new custom ValueConverter which you then use in your new IDbAdapter which you set in configuration with Fluently.Configure.DatabaseAdapter(yourAdapter).[yadda]...
This definitely sucks. It would be much better to have the ability to set custom types, ideally per column, or at least database wide without having the redo the whole adapter stack. On the positive side, we've got things broken down nicely into small parts, so it might not be very hard to do such an enhancement.
However, it's not something I would develop anytime soon. Of course we love pull requests!
--
Tim Scott
Lunaverse Software