J'ai un objet avec une propriété que je souhaite mapper Serializable. NHibernate prend en charge ceci:Mappage vers SerializableType dans Fluent NHibernate
<property name="FeeGenerator" column="FeeGenerator" type="Serializable" />
Existe-t-il un moyen d'accomplir cela dans Fluent NHibernate?
Il y a une question SO (Map to Serializable in Fluent NHibernate) qui semble répondre à cela, mais la seule réponse ne fonctionne pas pour moi.
Si je mets
CustomType<NHibernate.Type.SerializableType>();
Je reçois l'exception suivante:
Could not instantiate IType SerializableType: System.MissingMethodException: No parameterless constructor defined for this object.
Que diriez-vous sérialisation à Xml plutôt que VARBINARY? – row1