1、实体bool类型属性与数据库映射。如实体中有bool属性IsDelete.配置如下
<property column="IsDelete" name="IsDelete" type="YesNo" ></property>
2、若将数据写入到表时,希望某个字段不被写入则如下映射
<property column="IsDelete" name="IsDelete" insert="false"></property>
NHibernate 知识点整理,布布扣,bubuko.com
原文:http://www.cnblogs.com/tyb1222/p/3596759.html