Customer テーブルから customerId を取得しようとしています。
ただし、作成しようとすると、「型 'System.Linq.Iqueryable' を 'int' に暗黙的に変換できません」というエラーが表示されます。
どうすればcustomerIdを取得できますか??
ありがとうございました。
これが私のコーディングです。
int customerId = from a in db.Customer
                            where a.userName == customerName
                            select a.customerId; 
                           //it has error in here.
order.customerId = customerId;