Manual DAL & BLL vs. ORM

后端 未结 8 1111
再見小時候
再見小時候 2021-02-03 15:21

Which approach is better: 1) to use a third-party ORM system or 2) manually write DAL and BLL code to work wi

8条回答
  •  无人及你
    2021-02-03 15:49

    I recently took part in sufficiently large interesting project. I didn't join it from the beginning and we had to support already implemented architecture. Data access to all objects was implemented through stored procedures and automatically generated wrapper-methods on .NET that returned DataTable objects. The development process in such system was really slow and inefficient. We had to write huge stored procedure on PL/SQL for every query, that could be expressed in simple LINQ query. If we had used ORM, we would have implement project several times faster. And I don't see any advantage of such architecture.

    I admit, that it is just particular not very successful project, but I made following conclusion: Before refusing to use ORM think twice, do you really need such flexibility and control over database? I think in most cases it isn't worth wasted time and money.

提交回复
热议问题