Would you use NHibernate for a project with a legacy database, which is partly out of your control?

后端 未结 3 1058
故里飘歌
故里飘歌 2021-01-05 21:11

For me the answer is currently: No, I would use iBatis, because NHibernate is a pain, when the database model and the object model are not in synch. If I don\'t have full co

3条回答
  •  花落未央
    2021-01-05 22:00

    I've been using nHibernate in an existing application. I use it for all new development, I have no intention of porting the existing stuff over either there just isn't a compelling reason but for new stuff on the project it works great.

    If you are going to port the code over then you should be able to change the database to match better with your domain model, without much impact (depending on how leaky your database is ie who access it). Changing the domain model would impact the application however.

提交回复
热议问题