WHAT IS DIFFERENCE BETWEEN LINQ AND STORED PROCEDURES?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
C# 
C#
 3145  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    What is difference between LINQ and Stored Procedures?

    Difference between LINQ and Stored Procedures:

    1. Stored procedures normally are faster as they have a predictable execution plan. Therefore, if a stored procedure is being executed for the second time, the database gets the cached execution plan to execute the stored procedure.
    2. LINQ supports type safety against stored procedures.
    3. LINQ supports abstraction which allows framework to add additional improvements like multi threading. It’s much simpler and easier to add this support through LINQ instead of stored procedures.
    4. LINQ allows for debugging using .NET debugger, which is not possible in case of stored procedures.
    5. LINQ supports multiple databases against stored procedures which need to be re-written for different databases.
    6. Deploying LINQ based solution is much simpler than a set of stored procedures

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!