开发者

Map to Serializable in Fluent NHibernate

开发者 https://www.devze.com 2022-12-15 15:32 出处:网络
NHibernate has a \"开发者_JAVA百科Serializable\" type <property name=\"PropertyName\" column=\"ColumnName\" type=\"**Serializable**\"/>

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

精彩评论

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

关注公众号