I have the following (partial) model:
class LogMessage{
string Format;
object[] args;
}
I want to store args[]
as a single column in the table, taking advance of the fact that format arguments are generally serializable or can be converted to a string a priori.
I don't want to store the formatted message, I want to separately store format and args (this has several advantages).
How can I tell Fluent NHibernate to use a BLOB type to store that column and perform simple binary serialization/deserialization when persisting the entity?