I’m new to LINQ and am having a small issue. I created a DBML file and dragged all of my tables to the design surface. Now, when I try to drag a stored procedure to the methods pane, Visual Studio thinks a second and then doesn’t do anything. My method does not show up in the methods pane.
Is some error occurring behind the scenes? If so, how can I troubleshoot it?
It’s possible that the LINQ to SQL designer isn’t able to figure out the schema on your stored procedure, especially if you use temporary tables. Try changing your stored procedure to just select from the table in question, map it into the designer (by dragging on top of the correct table), then change the procedure back to the original code.