MVC, C#, .Net, LINQ?, Lambda? i get an error pls help
$2-8 USD / hour
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'
Project ID: #22769761
About the project
Awarded to:
2 min job .................................................................................... i am ready.......................
6 freelancers are bidding on average $7/hour for this job
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.
Hi, I am a senior .Net developer with 5+ years of experience and I am sure I can resolve this error.
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