开发者

Map to Serializable in Fluent NHibernate

NHibernate has a "开发者_JAVA百科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**>();

??


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


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

seems to do it

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜