Which ORM frameworks will build and execute the SQL DDL for you?

后端 未结 2 1837
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-20 06:00

Entity Framework Code First will build the database for you if it doesn\'t exist and structure it based on your mapping objects. I believe Roundhouse will do the same thing

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-20 06:19

    hibernate does if you set hbm2ddl.auto to create or create-drop or update in the config file. Using Java that is, I assume its the same for nHibernate.

    If an ORM does not do ddl, there is not much point in having it, well its a key feature at least. Imho.

提交回复
热议问题