Subsonic Vs NHibernate

后端 未结 15 2285
醉梦人生
醉梦人生 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:43

    For what its worth...I have had the opportunity to use both technologies quite abit more since asking this question. And I have to stay which if these technologies you choose matters very little. Sure NHibernate allows your business entities to be slightly less coupled to your database structure, but I still find that there are many occasions where you still have to bend to the will of the database.

    In my opinion the only true way it to totally seperate your Domain Model from your Database model is to write your own DTOS (essentially POCOs for passing data around), and then map them back to your ORM of choice in your data layer. But in most cases, this approach will me more hassle than its worth.

提交回复
热议问题