Blog Moved ....

ScottCate.com

community

frenz

my book(s)

my products

LINQ Question - Stuck on Compile Error

I'm trying to grab an email address out of an email table.

All the examples show this type of syntax ...

EmailAddress email = data.EmailAddresses.Select(e => e.EmailAddressId == license.EmailToSendLicense);

But I get this compile error.

Error 1 'System.Data.DLinq.Table<Test.EmailAddress>' does not contain a definition for 'Select' 

Thanks for help anyone?

Posted: Jul 27 2006, 03:52 PM by scott cate | with 2 comment(s)
Filed under:

Comments

Fabrice Marguerie said:

You're just missing an import for System.Query. Add "using System.Query" to the top of your file. This is how the standard query operators, like Select, and other extension methods are made available.
# July 28, 2006 5:37 PM

Tommy said:

in the latest release it has been changed to System.Linq
# June 14, 2007 10:37 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)