Skip to content

Added SQLilte support with option so switch between DB modes. DB replaced with Sales as in the demo - #3

Merged
Schullz merged 29 commits into
26.1.3+from
sales-db-sqlite-2
Sep 7, 2026
Merged

Schullz merged 29 commits into
26.1.3+from
sales-db-sqlite-2

Conversation

@Schullz

@Schullz Schullz commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Schullz added 12 commits July 31, 2026 13:32
…t-blazor-pivot-table-server-mode into 26.1.3+

# Conflicts:
#	CS/PivotTableBindToData/Pages/Index.razor
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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Sales table and populate sample data.
  • Updated the Blazor page to bind DxPivotTable to 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.

Comment thread CS/PivotTableBindToData/Program.cs Outdated
Comment thread CS/PivotTableBindToData/Pages/Index.razor
Comment thread SQL Server DB generator.sql Outdated
Comment thread SQL Server DB generator.sql Outdated
Comment thread CS/PivotTableBindToData/SalesDb/Scripts/SQLiteDbGenerator.sql
Comment thread CS/PivotTableBindToData/SalesDb/Scripts/SQLiteDbGenerator.sql Outdated
Comment thread CS/PivotTableBindToData/SalesDb/Scripts/SQLiteDbGenerator.sql Outdated
@Schullz Schullz changed the title Switched to SQL server and to Sales db from the demo Added SQLilte support with option so switch between DB modes. DB replaced with Sales as in the demo Aug 31, 2026
Comment thread CS/PivotTableBindToData/Pages/Index.razor
Comment thread CS/PivotTableBindToData/Pages/Index.razor Outdated
Comment thread CS/PivotTableBindToData/Pages/Index.razor Outdated
Comment thread CS/PivotTableBindToData/SalesDb/SalesDataGenerator.cs Outdated
Comment thread CS/PivotTableBindToData/appsettings.json Outdated
Comment thread CS/PivotTableBindToData/Pages/Index.razor Outdated
Comment thread CS/PivotTableBindToData/Pages/Index.razor Outdated
Comment thread CS/PivotTableBindToData/Pages/Index.razor
Comment thread CS/PivotTableBindToData/Pages/Index.razor
@Schullz
Schullz merged commit ad467fc into 26.1.3+ Sep 7, 2026
2 checks passed
@Schullz
Schullz deleted the sales-db-sqlite-2 branch September 7, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants