[dba-VB] LINQ Compiled Query

Gustav Brock gustav at cactus.dk
Sun Jan 9 09:00:22 CST 2011


Hi Shamil

Yes, I noticed that comment and think it is valid. 
However, if you have a crucial query in, say, a loop it could be worth the efforts.

/gustav


>>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>>
Hi Gustav --

No, I didn't. 

One of comments says: "I feel this compiled query approach is cumbersome.
Image your application has 100 linq queries, you have to create 100 helper
classes, and another 100 static functions. I wish Microsoft provides an
easily way, maybe some syntax sugar, or some more magics in DataContent, to
make programmer life easier. "

Thank you.

--
Shamil
 
-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com 
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: 9 ?????? 2011 ?. 17:12
To: dba-vb at databaseadvisors.com 
Subject: [dba-VB] LINQ Compiled Query

Hi all

Has anyone tested this technique out:
http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx 

It looks quite simple to implement.

/gustav





More information about the dba-VB mailing list