views:

32

answers:

2

How can I use dynamic LINQ in Visual Studio 2008?

I'm trying to use

using System.linq.Dynamic 

but there is no intellisense. How can I use it?

+3  A: 

Well, I'll first say that dynamic LINQ is usually overkill, but sometimes useful. But you should just be able to reference the dll and away you go. If no intellisense is appearing, but it compiles, then check where (physically) the dynamic linq dll is located. Ensure the "foo.dll.xml" file is located next to "foo.dll" (where "foo" is the assembly - perhaps System.Linq.Dynamic ?). This is key for intellisense when using assembly references.

Marc Gravell
How can download Dynamic linq? try to add refrence there isn't
Phsika
@Phsika - it is in the samples - here, IIRC: http://code.msdn.microsoft.com/cs2008samples
Marc Gravell
@Phsika - alternative link: http://msdn2.microsoft.com/en-us/vcsharp/bb894665.aspx
Marc Gravell
And of course, the Gu: http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx
Marc Gravell
A: 

You should find the answer in here:

http://stackoverflow.com/questions/1292482/how-do-i-build-up-linq-dynamically

EJB