Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
mySqlテーブルにこのテーブル「CommonData」があります
linq を使用して c# からクエリを実行し、最後に挿入された日付から「Id」のリストを検索したいと考えています。つまり、ここでは最新の挿入日が "22-04-2013" であるため、挿入日が "22-04-2013" である ID のリストを取得する必要があります。
私はそれにLinqを使用しています。
いくつかの方法でこれを行うことができません。
シンプルな人が使用している可能性がありますOrderByDescending
OrderByDescending
var result = CommonData.OrderByDescending(c=> c.InsertDate).Select(c => c.Id);