Re: LINQ Question (Contains)
- From: "Ralf Rottmann \(www.24100.net\)" <BeSharp@xxxxxxxx>
- Date: Mon, 26 Nov 2007 00:04:05 +0100
It's actually not about a generated assembly. It's all static assemblies that compile-once. The extension methods defined in Dynamic.cs parse an expression provided as a simple string into a LINQ expression tree at runtime.
So all they do is take away the burden of us having to do it ourselves. :-)
I assume it scales just fine.
I'm still not happy as obviously this takes us a bit back into not so type safe SQL String Command creation times... however, I'm still struggling with fully understanding how to manually create an expression tree with these dynamics myself.
Hmm... I need a "functional enlightment"... :-)
"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message news:MPG.21b40eb1b8e347ee669@xxxxxxxxxxxxxxxxxxxxxxx
Ralf Rottmann (www.24100.net) <BeSharp@xxxxxxxx> wrote:I finally found a pretty good solution and documented it here:
http://www.talentgrouplabs.com/blog/archive/2007/11/25/dynamic-linq-q
ueries--dynamic-where-clause-part-1.aspx
What do you think?
Hmm... I worry a little bit about how this will scale over time. I
don't know the details of generated assemblies, but I wonder whether
you'll get a new assembly every time you run a query. Maybe not - I
really haven't looked at the details.
I'm sure there's a way of getting the expression tree stuff to work,
but it's still eluding me at the moment :(
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
.
- Follow-Ups:
- Re: LINQ Question (Contains)
- From: Jon Skeet [C# MVP]
- Re: LINQ Question (Contains)
- References:
- LINQ Question (Contains)
- From: Ralf Rottmann \(www.24100.net\)
- Re: LINQ Question (Contains)
- From: Ralf Rottmann \(www.24100.net\)
- Re: LINQ Question (Contains)
- From: Jon Skeet [C# MVP]
- LINQ Question (Contains)
- Prev by Date: Re: LINQ Question (Contains)
- Next by Date: Re: Time formatting is strange
- Previous by thread: Re: LINQ Question (Contains)
- Next by thread: Re: LINQ Question (Contains)
- Index(es):
Relevant Pages
|