利用SchemaExport可以生成数据库架构,包括表等。。

Configuration cfg = new Configuration().Configure("config/hibernate.cfg.xml")
.AddAssembly("Authorization");


SchemaExport se = new SchemaExport(cfg);
se.SetOutputFile(filename);
se.Create(true,true);

使用SchemaExport工具生成数据库架构,这就是领域驱动设计/开发(DDD,Domain Driven Design/Development)的思路。设计,开发应基于对象模型,按照对象模型建立数据库关系模型,而非先设计数据库然后再设计对象

相关文章:

  • 2021-08-09
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2021-12-16
  • 2021-11-23
  • 2021-11-22
猜你喜欢
  • 2022-02-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2021-05-30
相关资源
相似解决方案