feat: Implementato supporto per query custom nei profili Data Coupler

- Aggiunto campo SourceCustomQuery al modello DataCouplerProfile e DTO
- Creata migrazione database per la nuova colonna SourceCustomQuery
- Aggiornato DataCouplerProfileService per gestire il mapping della query custom
- Modificato ProfileSaver per includere la query custom nel salvataggio
- Implementata logica di caricamento profili con supporto query custom:
  * Popolamento automatico della textbox con query salvata
  * Validazione ed esecuzione automatica della query al caricamento
  * Caricamento anteprima dati e mapping dopo validazione query
  * Gestione priorità: query custom ha precedenza sulla selezione tabella
- Aggiornato DataCoupler.razor per passare la query custom al ProfileSaver
- Corretto salvataggio profili esistenti per includere SourceCustomQuery

Il sistema ora permette di salvare e ripristinare completamente le configurazioni
con query SQL personalizzate, mantenendo il comportamento esistente per le
This commit is contained in:
2025-07-05 21:56:13 +02:00
parent 7d2961702c
commit ee3c251b08
13 changed files with 419 additions and 4 deletions
@@ -217,6 +217,7 @@ public class DataCouplerProfileService : IDataCouplerProfileService
SourceDatabaseName = profile.SourceDatabaseName,
SourceSchema = profile.SourceSchema,
SourceTable = profile.SourceTable,
SourceCustomQuery = profile.SourceCustomQuery,
SourceFilePath = profile.SourceFilePath,
DestinationType = profile.DestinationType,
DestinationCredentialId = profile.DestinationCredentialId,
@@ -245,6 +246,7 @@ public class DataCouplerProfileService : IDataCouplerProfileService
SourceDatabaseName = dto.SourceDatabaseName,
SourceSchema = dto.SourceSchema,
SourceTable = dto.SourceTable,
SourceCustomQuery = dto.SourceCustomQuery,
SourceFilePath = dto.SourceFilePath,
DestinationType = dto.DestinationType,
DestinationCredentialId = dto.DestinationCredentialId,