Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
LINQ has good advantage over stored procedures:
The query when executed against Sql Server, which in turn needs to generate an execution plan for the query and run it against the table to get the results. It's pretty efficient at creating the right query for the right job, and supports more of an ad-hoc approach to data querying.
With stored procedures, Linq-to-Sql doesn't have to generate an expression tree and from that generate the sql, instead the designer generated class has all in information it needs to pass the arguments from the method to the stored procedure.
In that sense, its more efficient to use stored procedures, but you lose the ability to do these ad-hoc queries which are so often useful.