Laziale
Laziale

Reputation: 8225

datacontext not found in vs2010 sp1

I am starting to learn some linq and there is a place where I need to use datacontent, but it seems that the IntelliSense can't found any datacontent. Am I missing something? I am running VS2010 SP1. Screenshot attached. Thanks in advance for your help.screenshot

Upvotes: 1

Views: 1016

Answers (1)

Chris
Chris

Reputation: 565

DataContext is defined in the System.Data.Linq namespace, which you don't have in your using statements. Make sure the System.Data.Linq assembly is referenced, then add that using statement.

Upvotes: 2

Related Questions