에 double 값을 반환하는 방법을는 목록
내 코드는 같은
public List<OrderMaster> GetAmountByOrder(int orderId)
{
var amount = from om in _db.OrderMa
join od in _db.Order on om.OrderId equals od.OrderId
where om.OrderId == od.OrderId && om.PaymentStatus == false
select om.Amount;
return amount.ToList();
}
amount.ToList(); error is showing.
cannot implicitly convert type double to list.....
입니다 ... 어떻게 해결하는 방법 이 문제?
다시는 보여주고있다 – PoliDev
이 널 사이에 차이가 @PoliDev'암시 System.Collections.Generic.List '에 System.Collections.Generic.List '형식을 변환 할 수 없습니다 '와 같은 오류 double (double?) 및 normal double. null 가능 유형에 대해 읽어보십시오. http://msdn.microsoft.com/en-us/library/1t3y8s4s.aspx –
Euphoric