1

I have a view in my sql database and it's mapped in my dbml file. Lets call ituserview

using(FooDataContext db = new FooDataContext()){
var users = from ur in db.userview
            where ur.username == "james"   //username is a colomn of userview
            select ur;
}

I get the following error

Could not find an implementation of the query pattern for source type 'TestProject.Models.userview'. 'Select' not found.

Bonk
  • 1,859
  • 9
  • 28
  • 46

1 Answers1

2

Have you added System.Linq to your code file?

MikeTWebb
  • 9,149
  • 25
  • 93
  • 132