Lyo.Reporting.Models 2.0.0

dotnet add package Lyo.Reporting.Models --version 2.0.0
                    
NuGet\Install-Package Lyo.Reporting.Models -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lyo.Reporting.Models" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.Reporting.Models" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Lyo.Reporting.Models" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lyo.Reporting.Models --version 2.0.0
                    
#r "nuget: Lyo.Reporting.Models, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lyo.Reporting.Models@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lyo.Reporting.Models&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Lyo.Reporting.Models&version=2.0.0
                    
Install as a Cake Tool

Lyo.Reporting.Models

Fluent builders, API contracts, generation hooks, and composition models for Lyo Reporting.

Features

  • ReportFormatExtensions (Enums/). Maps ReportFormat onto the shared FileTypeInfo catalog and surfaces FileType, Extension, and ContentType. Renderers and ReportService read these instead of keeping parallel FormatExtension and GuessContentType switches.

Routes and formats

  • ReportFormat values: Html, Pdf, Csv, Xlsx, Json.
  • Constants.Rest.Reporting route constants cover GenerationsGenerate plus the GenerationsDownloadSuffix (Download) and GenerationsRerunSuffix (Rerun) segments under Reporting/Generation/{id}/….
  • Retention cleanup is recorded by Constants.Metrics as reporting.generation.cleaned.
  • ReportBuilder controls: card, block, table, and CSS grid (AddCard / AddBlock / AddTable / AddGrid). Blocks include heading, callout, image, divider, spacer, page break, progress, key-value, quote, code, chart (ChartKind bar/line/doughnut/pie/sparkline/gauge, static series or AddChartFromParameter), badge, signature, table of contents, timeline, address, totals, checkbox terms, notes, and AddComponent (Blazor FullName), plus SetLayout (theme, page size, watermark, logo, padding, margin, optional RootComponentType) and AddParameter (schema + example values). ToDefinitionReq dual-writes composition JSON and parameter specs, copying ExampleValue onto Value when no default is set.
  • ReportDesignTemplates starters: Blank, Controls gallery (TOC, static and FromParameter charts, page break, collapsed appendix), Sales summary, Invoice (FromParameter line items), Operations dashboard (KPI cards + FromParameter chart). Samples is the saved-definition catalog (excludes Blank) used by the workbench Templates menu and Test Gateway seed.
  • ReportCompositionProcessor interpolates {Key} placeholders and honors VisibleWhen before generate and file render. The design canvas interpolates example values at paint time on the live composition (no clone, hidden VisibleWhen items stay editable and dimmed). Empty TOC blocks and FromParameter tables/charts fill from example parameter JSON at paint without mutating the live graph.
  • SectionBody enumerates mixed controls and subsections. All-zero Order keeps list order then subsections. Designer chrome keys (ReportDesignTreeExpand.LiveKey) do not write Section.Id. Nested grids are rejected.
  • KeepTogether is omit-null. Null means the type default: on for cards, blocks, and layout grids; off for tables so tall tables can split. Page breaks ignore the flag. ReportViewPainter emits break-inside: avoid when effective.
  • Table can load rows from Static cells, FromParameter (JSON array on a definition parameter) via FieldMap, or Query/Sproc Options JSON (the same ParameterOptions document as definition parameters). Chart blocks can fill from a parameter with ChartLabelField / ChartValueField. Query/Sproc execution stays out of this package.

Notes

  • Column ValueFormatter delegates are [JsonIgnore] and do not survive JSON persistence into ReportDataJson.
  • Lyo.Reporting.Web owns HTML/PDF rendering; Lyo.Reporting.Postgres owns CSV/XLSX/JSON rendering and orchestration.
  • Lyo.Reporting.Api hosts the HTTP endpoints. Persist staged output in consumer ReportGenerationHooks (Reporting does not reference FileStorage); drop persisted output in OnCleanupAsync when retention, generation delete, or definition delete removes rows.
  • ReportDefinitionParameterReq.Options. JSON picker source (static items, root QueryReq, or schema.func sproc); Value is JSON for the declared CLR FullName (LyoTypeInfo). Collection/JSON types (and tables with FromParameter) materialize row JSON. Tables can also run Query/Sproc Options directly. AllowedValues remains the validation shorthand.
  • ReportDefinitionParameterReq.DefaultKind + DefaultTemplate. Literal (the default) takes the default from Value; Expression renders DefaultTemplate when the caller supplies no value, so Type can still describe the value itself. During merge, ReportService resolves it and validates the rendered text against Type.

Dependencies

Generated from ProjectReference / PackageReference (same model as docs/Lyo.ProjectGraph.html).

  • Lyo.Common.Json (direct, lyo)
  • Lyo.Common.Metadata (direct, lyo)
  • Lyo.Exceptions (direct, lyo)
  • Lyo.Metrics (direct, lyo)
  • Lyo.Parameters (direct, lyo)
  • System.Text.Json 10.0.5 (direct, microsoft, netstandard2.0)
  • Lyo.Common.Core (transitive, lyo)
  • Microsoft.Bcl.AsyncInterfaces 10.0.5 (transitive, microsoft, netstandard2.0)
  • System.Memory 4.6.3 (transitive, microsoft, netstandard2.0)
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Lyo.Reporting.Models:

Package Downloads
Lyo.Reporting.Postgres

PostgreSQL reporting data layer with EF Core, optional auto-migrations, and report generation orchestration.

Lyo.Reporting.Client

HTTP client for the Lyo Reporting API.

Lyo.Reporting.Web.Components

Blazor components library for browsing report definitions, designing compositions, running reports, and viewing/downloading generations with MudBlazor.

Lyo.Api.Reporting

HTTP API surface for Lyo Reporting: authenticated definition CRUD, read-only generations, and Generate.

Lyo.Reporting.Web

Blazor report viewer and HTML/PDF report renderers for Lyo Reporting.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 121 9/9/2026
1.0.13 188 8/25/2026
1.0.11 181 8/23/2026
1.0.9 215 8/22/2026
1.0.6 225 8/20/2026
1.0.4 226 8/20/2026
1.0.3 191 8/19/2026
1.0.2 188 8/19/2026
1.0.1 192 8/18/2026
1.0.0 177 8/16/2026