Generate Database from NHibernate config files

后端 未结 3 1522
轻奢々
轻奢々 2020-12-29 14:13

Is it possible to generate the database tables and c# classes from NHibernate config files? Afterwards, is it possible to change the config files and update the tables and

3条回答
  •  梦毁少年i
    2020-12-29 14:39

    check out the "hbm2ddl.auto" setting (in configuration or NHibernate.Cfg.Configuration ). with "create" you can recreate the whole database schema from your mappings and "update" setting should just update your schema.

提交回复
热议问题