I have an object with a property that I'd like to map as Serializable. NHibernate supports this:
<property name="FeeGenerator" column="FeeGenerator" type="Serializable" />
Is there a way to accomplish this in Fluent NHibernate?
There's an SO question (http://stackoverflow.com/questions/2000798/map-to-serializable-in-fluent-nhibernate) that would seem to address this, but the only response there doesn't work for me.
If I set
CustomType<NHibernate.Type.SerializableType>();
I get the following Exception:
Could not instantiate IType SerializableType: System.MissingMethodException: No parameterless constructor defined for this object.