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.
SQL Server の PARTITION OVER 機能に相当する LINQ はありますか?
SELECT Decision_ID , ID ROW_NUMBER() OVER ( PARTITION BY Decision_ID ORDER BY Decision_ID, ID ASC ) calcAmend FROM dbo.Decision_Data
各レコードのランキングを与える
DecisionData .GroupBy(d => d.DecisionID, (key, dd) => dd .OrderBy(d => d.Id) .Select((d, i) => new {d.DecisionId, d.Id, calcAmend = i})) .SelectMany(d => d)