Attention: We are retiring the ASP.NET Community Blogs. Learn more >

LINQ to SQL: returning multiple result sets

I was wondering if I could use a store procedure that returns multiple result sets with LINQ to SQL.  Looks like out of the box with the designer generated code, only the first result set will be returned.  A quick search lead me to this blog post by the Swiss MSDN team where they explain how to extend the DataContext code to retrieve more then one result set:

http://blogs.msdn.com/swiss_dpe_team/archive/2008/02/04/linq-to-sql-returning-multiple-result-sets.aspx

Bookmark and Share

1 Comment

  • I posted this as a "bug" a while back but it got rejected - the team suggested using SQLMetal.

    https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=295366&wa=wsignin1.0

    Raj

Comments have been disabled for this content.