开发者

LINQ and Storedprocedure

开发者 https://www.devze.com 2022-12-26 03:37 出处:网络
The interview i faced was \"What is the difference between LINQ and Stored procedure?\". I don\'t know whether it is a vague question or proper one. I answered

The interview i faced was "What is the difference between LINQ and Stored procedure?".

I don't know whether it is a vague question or proper one. I answered "In Linq there is a support for Closure so you can refer the value of outer parameter inside the anonymous body,you can't do the same with Stored procedure"开发者_Go百科.

Just i am requesting you the proper answer.


A stored procedure is stored in the database while any "LINQ" queries would be in your code. I think that's the biggest difference.

0

精彩评论

暂无评论...
验证码 换一张
取 消