Added SQLilte support with option so switch between DB modes. DB replaced with Sales as in the demo - #3
Merged
Conversation
…t-blazor-pivot-table-server-mode into 26.1.3+ # Conflicts: # CS/PivotTableBindToData/Pages/Index.razor
…d by global settings of the data source
commit 67900ae3cb5dd116342343ddbab8c3083b9d316f
Author: Anton Shapovalov <anton.shapovalov@devexpress.com>
Date: Thu Aug 13 17:26:29 2026 +0400
added switching between SQL server and SQLite
commit 0553c04f831c464dad6ce7901b5e49449db5ee8c
Author: Anton Shapovalov <anton.shapovalov@devexpress.com>
Date: Thu Aug 13 16:02:51 2026 +0400
generated sales db that doesn't require joins. It works faster 12 seconds to load
There was a problem hiding this comment.
Pull request overview
This PR updates the Blazor PivotTable sample to use a new Sales dataset and introduces “server mode” binding (virtual scrolling) backed by EF Core, with scripts to generate the Sales table for both SQLite and SQL Server.
Changes:
- Added SQLite and SQL Server scripts to generate a
Salestable and populate sample data. - Updated the Blazor page to bind
DxPivotTableto an EF-backed server-mode data source with virtual scrolling. - Updated app startup and project dependencies to support switching between SQLite and SQL Server (including adding EF Core SQL Server provider).
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| SQLite DB generator.sql | Adds a SQLite schema + data generator for Sales, including store name enrichment. |
| SQL Server DB generator.sql | Adds a SQL Server schema + data generator for Sales, including store name enrichment. |
| CS/PivotTableBindToData/Program.cs | Adds runtime selection between SQLite file DB and SQL Server connection string. |
| CS/PivotTableBindToData/PivotTableBindToData.csproj | Updates target framework and bumps DevExpress/EF packages; adds EF SQL Server provider. |
| CS/PivotTableBindToData/Pages/Index.razor | Switches PivotTable to server-mode binding against NorthwindContext.Sales with virtual scrolling. |
| CS/PivotTableBindToData/Northwind/Sale.cs | Introduces the Sale entity model. |
| CS/PivotTableBindToData/Northwind/NorthwindContext.cs | Adds DbSet<Sale> Sales. |
| CS/PivotTableBindToData/Data/PivotRow.cs | Removes the old in-memory PivotRow model used for client-side joins. |
| CS/PivotTableBindToData/appsettings.json | Adds a SQL Server connection string for the EF context. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
AdelorDM
reviewed
Sep 2, 2026
AdelorDM
reviewed
Sep 2, 2026
AdelorDM
reviewed
Sep 2, 2026
AdelorDM
reviewed
Sep 2, 2026
AdelorDM
reviewed
Sep 2, 2026
AdelorDM
approved these changes
Sep 3, 2026
miherlosev
requested changes
Sep 4, 2026
miherlosev
approved these changes
Sep 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.