NHibernate does not create Tables

南楼画角 提交于 2019-12-06 15:45:23

Your most likely problems:

  • using SQLite with connection.release_mode=on_close
  • no mapping files in the specified assembly
  • mapping files have not been added to the assembly as an Embedded Resource
  • mapping files are not named *.hbm.xml
  • some table or column names should be quoted for SQL (this would be throwing an exception)

The first parameter to Execute() must be true.

new SchemaExport(cfg).Execute(**true**, true, false, false);

I don't know why, but there you have it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!