Stored Procedures - End of days

前端 未结 20 1454
轻奢々
轻奢々 2021-01-31 08:51

I’m listening to the Hanselminutes Podcast; \"StackOverflow uses ASP.NET MVC - Jeff Atwood and his technical team\". During the course of the Podcast they are speaking about SQL

20条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 09:34

    I keep hearing the argument that SPs are good if you have multiple applications connecting to the database or that it makes bug fixing easier.

    THIS IS WHAT A SERVICE LAYER IS FOR!

    Business logic goes in the service layer, application logic goes in the application/web site.

    It's alot harder to debug and maintain hundreds of SPs (especially if there generated) than it is to maintain well written code that talks to a DB via an ORM tool.

提交回复
热议问题