Solved

The query results cannot be enumerated more than once in LINQ

Posted on 2009-06-28
2
4,112 Views
Last Modified: 2013-12-17
I am getting this error while  implementing the stored procedure in LINQ.. Please see the code attached below...


Error Message : The query results cannot be enumerated more than once in LINQ...

let me know if you  want to see the method( code) ,  where I am Implementing the below mentioned code..

Please resolve it ASAP.


var q = from c in s_Validation_DL.SP_SV_COM_XOSERV_FETCH_CHARGE_ITEM_DETAILS(invoiceNumber)

 

                                where c.INV_NUMBER == invoiceNumber

 

                                select c;

 

                         foreach (var chargeItem in q)

 

                        {

 

                            if (chargeItem.IS_AQGT73200.Value)

 

                            {

 

                              }

Open in new window

0
Comment
Question by:tulasisiva
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 50 total points
ID: 24735178
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now