Linq over Stored Procedures

后端 未结 9 577
长情又很酷
长情又很酷 2021-01-05 11:19

What are some pros and cons of using linq over stored procedures?

9条回答
  •  天命终不由人
    2021-01-05 12:02

    What about modularity?

    One thing that I find with LINQ-to-SQL is that if there is a mistake, we might need to recompile and redeploy the entire application (or just affected DLLs), but with stored procedures, I just need to fix the one stored procedure and my job is done.

    It seems to me that LINQ feels more adhoc and stored procedure feels more formal.

    Again, I do like LINQ and features that came with that ... but am not quite sold on LINQ-TO-SQL.

提交回复
热议问题