NHibernate 使用问题总结 Q: Invalid Cast (check your mapping for property type mismatches); setter of XXXClass A: 检查影射类中类文件跟映射文件里字段类型是否一致.