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.
私のテーブルには「時間」フィールドが含まれています。テーブルに複数のレコードがあります。最初のレコードを除くすべての「時間」フィールドの合計を取得したいと思います。最初のレコードを除くすべての合計を取得するにはどうすればよいですか?
LinqでSkip()メソッドを使用できます。
var totalHours = dataContext.TimeZones.Skip(1).Sum(x => x.Hours);