Solved

The query results cannot be enumerated more than once in LINQ

Posted on 2009-06-28
2
4,191 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 50 total points
ID: 24735178
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C#.net split string and then check appropriate checkboxlist 4 43
Problem to Office 1 40
Return array 3 20
Convert VB web project to C# 3 35
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

763 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