0

NHibernate has a "Serializable" type

<property name="PropertyName" column="ColumnName" type="**Serializable**"  />

Is there a built in type for this in Fluent NHibernate?

Something like

Map(x => x.PropertyName).CustomType<**SerializableType**>();

??

2 Answers 2

2

Map(c => c.PropertyName).CustomType("serializable");

0
Map(c => c.PropertyName).CustomType<NHibernate.Type.SerializableType>()

seems to do it

3
  • Nice! Silly me, I should have tried that, but I guess I thought there was an equivalent in the Fluent project.
    – noah
    Commented Jan 4, 2010 at 17:45
  • Compiles but throws Exception @ runtime Commented Jan 20, 2010 at 16:01
  • @statichippo - is the type of property [Serializable]? Commented Jan 20, 2010 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.