Skip to content

nielsbosma/pivotpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NuGet

PivotPad

Pivot extension for LINQPad.

screenshot.png

Usage

Add the PivotPad nuget package to your LINQPad query.

Example:

var data = db.Orders.Pivot(e => 
    e
        .Column(f => f.Employee)
        .DateRow(f => f.OrderDate, PivotDatePart.Year|PivotDatePart.Month|PivotDatePart.Day)
        .Measure(f => f.TotalAmount, PivotAggregation.Sum)
);

Uses https://www.webdatarocks.com/ for the pivot table.