MVC, C#, .Net, LINQ?, Lambda? i get an error pls help

Completed Posted 4 years ago Paid on delivery
Completed

my code:

public readonly myEntities db = new myEntities();

var cd = [login to view URL](w => [login to view URL] == ID).FirstOrDefault();

//the above works fine

foreach (Order x in cd???) //the err is here cd???

{

if ([login to view URL] == 1)

{ }

}

i get the following error

Error CS1579 foreach statement cannot operate on variables of type

'tablename' because 'tablename' does not contain a public instance definition for 'GetEnumerator'

C# Programming .NET ASP.NET Microsoft SQL Server MVC

Project ID: #22769761

About the project

6 proposals Remote project Active 4 years ago

Awarded to:

Ahmed818

2 min job .................................................................................... i am ready.......................

$2 USD / hour
(66 Reviews)
5.2

6 freelancers are bidding on average $7/hour for this job

Agiletechstudio

Hi there, I read your initial requirements and I have some questions regarding your .net project. please send me a message so that we could discuss it further.

$5 USD / hour
(80 Reviews)
7.1
taqishah1214

Hi, I am a senior .Net developer with 5+ years of experience and I am sure I can resolve this error.

$20 USD / hour
(1 Review)
1.5
MaryamQadeer

Dear hiring Manager, I will be able to complete your project with the highest quality and accuracy. No need to pay me anything if you are not satisfied with my work. I will be more than happy if I get the opportunity t More

$2 USD / hour
(0 Reviews)
0.0