The method 'Skip' is only supported for sorted input in LINQ to Entities

The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'.

Entity Framework の LINQ でデータを取得し、SKip を使おうとしたときのエラー。
データ取得時に Distinct() をしていたのが原因だった。

このブログの人気の投稿

コピーした行の挿入が表示されない時はフィルタされていないかチェック

Excel で一部の図形だけ固定する