Reputation: 11711
We are changing some legacy code to use LINQ to SQL.
In a seperate test throwaway class I tried making my db context and I can do
mydbcontext.mytable.Count()
fine, and it's all intellisensed.
However, when trying to implement this in the class (which is in the same assembly), the Queryable methods, such as Count, Where, etc are no longer valid.
Any ideas why this would be?
Upvotes: 0
Views: 721