Switch dashboard storage to SQL Server

Replaced file-based dashboard storage with SQL Server-backed storage using the new SqlDashboardStorage class and TBDD_SMF_CONFIG table. Updated Program.cs to use the new storage and ensure default dashboards are loaded into the database. Simplified DefaultDashboard.xml to remove old items. Added SQL script for the dashboard storage table. Cleaned up unused folder references in the project file. This centralizes dashboard management and supports multi-instance scenarios.
This commit is contained in:
OlgunR
2026-02-03 11:56:26 +01:00
parent 70e5cbc19f
commit 9db55fd2fd
5 changed files with 146 additions and 54 deletions

View File

@@ -0,0 +1,17 @@
CREATE TABLE dbo.TBDD_SMF_CONFIG (
[GUID] [bigint] IDENTITY(1,1) NOT NULL,
[ACTIVE] [bit] NOT NULL,
DashboardId NVARCHAR(128) NOT NULL,
DashboardName NVARCHAR(256) NOT NULL,
DashboardData VARBINARY(MAX) NOT NULL,
--- INSERT YOUR COLUMNS HERE ---
[ADDED_WHO] [nvarchar](50) NOT NULL,
[ADDED_WHEN] [datetime] NOT NULL,
[CHANGED_WHO] [nvarchar](50) NULL,
[CHANGED_WHEN] [datetime] NULL,
CONSTRAINT [PK_TBDD_SMF_CONFIG_DashboardStorage] PRIMARY KEY CLUSTERED
(
[GUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = ON, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO