用动软代码生成器的NHibernate生成模板,生成一个“XML映射模板”,老是提示Could not compile the mapping document的问题。

NHibernate错误:Could not compile the mapping document的解决
    




NHibernate

各种的找,就是没找到问题。

后来调试的时候,把所有的中断翻出来

NHibernate错误:Could not compile the mapping document的解决
    




NHibernate

发现bool这个类型不认识,再看CodeSmith的模板,里面对MS SQLServer的bit类型是转化为Boolean,

NHibernate错误:Could not compile the mapping document的解决
    




NHibernate

果断地把对应的hbm.xml里的bool类型换成Boolean,

NHibernate错误:Could not compile the mapping document的解决
    




NHibernate

终于搞定。

相关文章:

  • 2022-12-23
  • 2021-05-26
  • 2021-06-24
  • 2022-12-23
  • 2021-12-16
  • 2021-10-04
猜你喜欢
  • 2021-10-26
  • 2022-01-24
  • 2021-09-19
  • 2022-01-25
  • 2021-07-31
  • 2021-11-06
  • 2021-09-04
相关资源
相似解决方案