views:

54

answers:

1

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**>();

??

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

seems to do it

David Kemp
Nice! Silly me, I should have tried that, but I guess I thought there was an equivalent in the Fluent project.
noah
Compiles but throws Exception @ runtime
statichippo
@statichippo - is the type of property `[Serializable]`?
David Kemp

related questions