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

완료 등록 시간: 4년 전 착불
완료

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# 프로그래밍 .NET ASP.NET 마이크로소프트 SQL 서버 MVC

프로젝트 ID: #22769761

프로젝트 소개

6 건(제안서) 재택 근무형 프로젝트 서비스 이용 중: 4년 전

수상자:

Ahmed818

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

$2 USD / (1시간 기준)
(66건의 리뷰)
5.2

이 일자리에 대한 프리랜서 6 명의 평균 입찰가: $7 (1시간 기준)

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 / (1시간 기준)
(80 리뷰)
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 / (1시간 기준)
(1 리뷰)
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 기타

$2 USD / (1시간 기준)
(0 리뷰)
0.0