Linq

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
 
A

Arne Vajhøj

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
 
A

Alberto Poblacion

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.
 
G

gentlerobbin

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 ;-)
 
G

gentlerobbin

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
 
I

imuaplease

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.
 
C

Chris Dunaway

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Linq 3
linq versus BindingSource. 19
Should I bother learning LinQ to Sql? 8
Linq or XmlReader 4
LINQ to XML - Performance - Speed 7
Searching and Linq 2
LINQ and access databse 2
LINQ Column problem 2

Top