Linq

  • Thread starter Thread starter gentlerobbin
  • Start date Start date
G

gentlerobbin

I can not use linq

using System.Data.Linq
///other code using linq database like
I have VS2005+dotNet 1.1, 2.0, 3.5 :D all in one

I'd like to dowload 3.5 runtime cls. don't know where it is to do so
Please help me please
 
I can not use linq

using System.Data.Linq
///other code using linq database like
I have VS2005+dotNet 1.1, 2.0, 3.5 :D all in one

I'd like to dowload 3.5 runtime cls. don't know where it is to do so

Try add a ref to System.Data.Linq.dll to the project.

Arne
 
I can not use linq
[...]
I have VS2005

LINQ (Language-INtegrated Query) is a feature of C# version 3.0, which
is not included in VS2005, and cannot be installed there as far as I know.
You will need to upgrade to VS2008, or use the command-line compiler
(csc.exe) from the Framework 3.5.
 
I can not use linq
[...]
I have VS2005
LINQ (Language-INtegrated Query) is a feature of C# version 3.0,
which is not included in VS2005, and cannot be installed there as far as
I know. You will need to upgrade to VS2008, or use the command-line
compiler (csc.exe) from the Framework 3.5.

The LINQ syntax is C# 3.0-only. But, with the 3.5 SDK installed and VS
2005, you can still use classes in the System.Data.Linq namespace.

Now, whether the OP is expecting to use the LINQ syntax in C# (and thus
can't, as you say), or just wants access to the LINQ libraries (and thus
can, if he does it right), I don't know. I also can't explain why I
perpetuated the ridiculous cross-posts to sci.math and comp.lang.c++ in my
first reply to this thread. Some things are just meant to remain
mysteries. :)

Pete

I can do all by myself. Amazing. Like it ;-)
 
I can not use linq
[...]
I have VS2005
LINQ (Language-INtegrated Query) is a feature of C# version 3.0,
which is not included in VS2005, and cannot be installed there as far as
I know. You will need to upgrade to VS2008, or use the command-line
compiler (csc.exe) from the Framework 3.5.

The LINQ syntax is C# 3.0-only. But, with the 3.5 SDK installed and VS
2005, you can still use classes in the System.Data.Linq namespace.

Now, whether the OP is expecting to use the LINQ syntax in C# (and thus
can't, as you say), or just wants access to the LINQ libraries (and thus
can, if he does it right), I don't know. I also can't explain why I
perpetuated the ridiculous cross-posts to sci.math and comp.lang.c++ in my
first reply to this thread. Some things are just meant to remain
mysteries. :)

Pete

I link the dll and keys words like
from where ...
are marked as undefined
i don;t know why
 
All the posters are nice,
I am a stupid student
but not the most stupid one
and not the undisciplined you may disgust
You can learn the cause and effect law via
my reactions.
Are we still shameful when doing wrong anything ?
1.Yes, because we are still human.
2.No, because we are almost animals.
 
Enumerable result = collection.Where(x => x.Name == "foo").Select(x =>
x);
Note that without C# 3.0 support, you cannot use "var" nor anonymous
types. This will limit the utility of LINQ somewhat, but you can still
take full advantage of the framework implementation in the Linq namespace.

The OP should be advised that the lambda expressions you used are only
available in C# 3 as well.

Chris
 
Back
Top