Subsonic Vs NHibernate

后端 未结 15 2308
醉梦人生
醉梦人生 2020-11-29 17:44

What is the concensus on when to use one of these tools adversed to the other? I find Subsonic very useful in terms of getting things done quickly, but on large projects it

15条回答
  •  半阙折子戏
    2020-11-29 18:16

    I'd recommend SubSonic if your project works with the ActiveRecord view that the database is your model. You'll get one class per table and everything just magically works. You can of course tweak and override things, but if you (or your project) fundamentally disagree with the class-per-table approach, I'd look at NHibernate since it starts with the more complex (but more flexible) approach of mapping your domain model to your database.

    If you're using a relatively simple database that's under your control (as in, you can change columns without sending eight forms to a database division oversight review board), I'd recommend starting with SubSonic and moving to NHibernate if SubSonic doesn't meet your needs.

提交回复
热议问题