映射到流畅的NHibernate的序列化 [英] Map to Serializable in Fluent NHibernate
本文介绍了映射到流畅的NHibernate的序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< property name =PropertyNamecolumn =ColumnNametype = ** Serializable **/>
在Fluent NHibernate中是否有内置类型?
类似于
Map(x => x.PropertyName).CustomType< ** SerializableType ** >();
??
解决方案
Map(c => c.PropertyName).CustomType< NHibernate.Type.SerializableType>()
似乎就是这样做的
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**>();
??
解决方案
Map(c => c.PropertyName).CustomType<NHibernate.Type.SerializableType>()
seems to do it
这篇关于映射到流畅的NHibernate的序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文