SyntaxFix
Write A Post
Hire A Developer
Questions
How about:
using (ModelName context = new ModelName()) { var ptx = (from r in context.TableName select r); }
ModelName is the class auto-generated by the designer, which inherits from ObjectContext.
ObjectContext