Why do I need Stored Procedures when I have LINQ to SQL

前端 未结 18 1075
栀梦
栀梦 2021-02-05 15:59

My understanding of Linq to Sql is it will take my Linq statement and convert it into an equivalent SQL statement.

So

var products = from p in db.Product         


        
18条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-05 16:27

    1. Stored Procedures and Linq to Sql solve different problems.

    2. Linq to Sql is particular to Microsoft SQL Server.

提交回复
热议问题