私のMVC3プロジェクトでは、MySQLコネクタを使用しています。そのメソッドを呼び出そうとすると、Specified method is not supported
エラーが発生します。なんで ?
public IList<Order> GetOrders()
{
return (from x in db.Order
where (x.Address.FirstOrDefault() != null)
orderby x.Created //it's a DateTime
descending select x).ToList();
}
編集
問題があるようですx.Address.FirstOrDefault() != null
edit2
そのコードも機能します
return (from x in db.Order
from y in db.Address
where (y.OrderID == x.OrderID)
orderby x.Created descending
select x).ToList();