Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

The query results cannot be enumerated more than once in LINQ

Posted on 2009-06-28
2
Medium Priority
?
4,333 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 200 total points
ID: 24735178
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

636 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