Completed

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

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'

Skills: C# Programming, .NET, ASP.NET, Microsoft SQL Server, MVC

See more: linq sql mvc asp net, net mvc c#, net mvc c, SQL, ASP.NET,MVC ,C#, .NET ,Web applications , Windows Applications, asp.net , mvc, c#, ASP.NET MVC C#, asp.net mvc c#, Asp.net mvc ,C#,Sql server, c#.net mvc, asp.net , mvc , c#, mvc c# asp.net, MVC C# .NET, MVC C# ASP.NET SQL SERVER, ASP.NET MVC C# jQuery JavaScript, C#,asp.net, asp.net mvc,vb.net, sql server, wcf, entity framework, asp.net , mvc c#, C#.NET,ASP.NET,MVC,SQL SERVER ,HTML,JQUERY, C#, .NET, MVC, .net mvc c#, asp mvc dot net c#

About the Employer:
( 37 reviews ) west des moines, United States

Project ID: #22769761

Awarded to:

Ahmed818

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

$2 USD / hour
(64 Reviews)
5.1

7 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
(78 Reviews)
7.1
heracliusdev

Hello I think it will take maximum 1 hour Can you give me your call or chat? If you want then i can fix it via remote. Regard

$10 USD / hour
(3 Reviews)
2.8
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
nusystec

Dear Customer Greetings for the day!!! I am Agnesh Arya an experienced .NET professional with 10+ years of experience based in India. I have developed various .NET based applications using latest framework like MV More

$5 USD / hour
(0 Reviews)
0.0
conioit

Dear Client! I am very happy to see your project detail. I have read Your description in brief. I am a expert asp.net developer with 4+ years of working experience & i can do your work with good quality. I am new on More

$5 USD / hour
(0 Reviews)
0.0
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