-1
public static List<Reservations> getReservations(int reservationId)
{
return hoteldb.hotel_reservations.Where(x => x.reservation_id == reservationId).ToList();
}
私は値を変換しましたが、私はすべてが良いですが役に立たないことを確認しました。LINQ一般的なリストは問題を変換できません
それは本当に以下でもコード働いていない:List<hotel_reservations>
:getReservationsたぶん
public List<Reservations> getReservations(int reservationId)
{
return hoteldb.hotel_reservations.Where(x => x.reservation_room_desc == "sdfsfs").ToList();
}
どのタイプが 'hotel_reservations'で、どのタイプが' reservation_id'(私は 'int'と仮定しますか)ですか? –
エラーメッセージがありますか? – Yanga
あなたは予約クラスを投稿することもできますか? – Miguel