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:
@@ -34,6 +34,9 @@ public class DataCouplerProfile
|
||||
[MaxLength(200)]
|
||||
public string? SourceTable { get; set; }
|
||||
|
||||
[MaxLength(2000)]
|
||||
public string? SourceCustomQuery { get; set; }
|
||||
|
||||
[MaxLength(500)]
|
||||
public string? SourceFilePath { get; set; }
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ public class DataCouplerProfileDto
|
||||
public string? SourceDatabaseName { get; set; }
|
||||
public string? SourceSchema { get; set; }
|
||||
public string? SourceTable { get; set; }
|
||||
public string? SourceCustomQuery { get; set; }
|
||||
public string? SourceFilePath { get; set; }
|
||||
|
||||
// Informazioni destinazione
|
||||
|
||||
Reference in New Issue
Block a user