This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
---
source_files:
- DataPRO/Modules/SystemSettings/DBImportExport/ViewModel/DBViewModel.cs
generated_at: "2026-04-17T16:00:15.722645+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "9547fb8cbb8ab859"
---
# Documentation: DBViewModel.cs
## 1. Purpose
This module provides the ViewModel for database import/export functionality within the DBImportExport namespace. It serves as a mediator between the import/export views and the underlying data operations, handling file browsing dialogs, XML data transport, and status notifications via Prism's event aggregation system. As noted in the source comments, functionality is currently limited to XML string transport due to DataPRO object dependencies residing in another project.
## 2. Public Interface
### Constructor
```csharp
public DBViewModel(IDBImportView importView, IDBExportView exportView, IRegionManager regionManager, IEventAggregator eventAggregator, IUnityContainer unityContainer)
```
Initializes the ViewModel, sets DataContext on both views, creates interaction requests, and subscribes to `RaiseNotification` and `BusyIndicatorChangeNotification` events.
### Properties
| Property | Type | Description |
|----------|------|-------------|
| `ImportView` | `IDBImportView` | The import view instance. |
| `ExportView` | `IDBExportView` | The export view instance. |
| `NotificationRequest` | `InteractionRequest<Notification>` | Request object for showing notifications. |
| `ConfirmationRequest` | `InteractionRequest<Confirmation>` | Request object for showing confirmations. |
| `IsDirty` | `bool` | Dirty state flag (getter only, private setter). |
| `IsBusy` | `bool` | Busy indicator for UI loading states. |
| `IsMenuIncluded` | `bool` | Toggle for including menu data. |
| `IsNavigationIncluded` | `bool`