Calling LINQ Queries in the Background
In my last two posts (here and here), I showed how you can pre-compile a LINQ query to improve your performance. As I noted in those posts, I wouldn’t expect a blinding improvement in response times—your application probably doesn’t have many really complex queries and, as a result, probably doesn’t spend a lot of time converting […]
PreCompiling LINQ Queries with Parameters
In my last post, I looked at precompiling a LINQ query to speed up (at least a little bit) your application. The LINQ statement I used as my example was very simple: Dim res = From o In en.Orders Select o This post looks at a more realistic example: a LINQ statement that has a Where clause. […]
Pre-Compile LINQ to Entities Queries for Faster Processing
When you issue a LINQ statement against an Entity Framework model, LINQ and Entity Framework conspire together to generate an SQL statement that’s sent to the database engine. The problem is that, if you execute that the same LINQ statement twice, that conversion is performed twice. For a statement executed more than once, especially if […]
HTML5, .NET, and Silverlight: Why So Serious?