[Feature] Implementato sistema di valori default per campi mapping
- Creato modello FieldMappingEntry per gestione unificata di field mapping e default values - Aggiunta colonna DefaultValuesJson alla tabella DataCouplerProfile (max 4000 caratteri) - Implementata UI con toggle per selezionare modalità Mapping o Default - Supporto per 9 tipi di dati: string, int, long, decimal, double, float, boolean, datetime, datetimeoffset - Aggiornata logica TransformRecordToRestEntity per applicare valori default dopo field mapping - Implementata serializzazione/deserializzazione DefaultValues in DataCouplerProfileService - Sistema completo di salvataggio/caricamento valori default nei profili - Migrazione database AddDefaultValuesJsonToProfile creata e applicata
This commit is contained in:
@@ -25,6 +25,7 @@ public partial class ProfileSaver
|
||||
[Parameter] public string? DestinationTable { get; set; }
|
||||
[Parameter] public string? DestinationEndpoint { get; set; }
|
||||
[Parameter] public List<FieldMappingDto>? FieldMappings { get; set; }
|
||||
[Parameter] public Dictionary<string, (object? Value, string? Type)>? DefaultValues { get; set; }
|
||||
[Parameter] public List<ExternalIdRelationshipDto>? ExternalIdRelationships { get; set; }
|
||||
[Parameter] public string? SourceKeyField { get; set; }
|
||||
[Parameter] public bool UseRecordAssociations { get; set; }
|
||||
@@ -79,6 +80,7 @@ public partial class ProfileSaver
|
||||
DestinationTable = DestinationTable,
|
||||
DestinationEndpoint = DestinationEndpoint,
|
||||
FieldMappings = FieldMappings,
|
||||
DefaultValues = DefaultValues,
|
||||
ExternalIdRelationships = ExternalIdRelationships,
|
||||
SourceKeyField = SourceKeyField,
|
||||
UseRecordAssociations = UseRecordAssociations
|
||||
|
||||
Reference in New Issue
Block a user