Skip to content

feat: add support to mongdb mapping with mapster - #16

Merged
gmasci-ca merged 3 commits into
mainfrom
feature/mongo-mapster
Sep 30, 2026
Merged

gmasci-ca merged 3 commits into
mainfrom
feature/mongo-mapster

Conversation

@adamelio-ca

Copy link
Copy Markdown
Contributor

Description

Completato il repository MongoDB "mapped", per i casi in cui il modello di dominio è diverso dal documento salvato. La traduzione fra i due modelli è fatta con Mapster, e il contratto pubblico del DAL non cambia.

Aggiunto nuovo pacchetto CodeArchitects.Platform.Data.MongoDB.Mapster

  • Contiene MongoDBMapsterRepository, che si può registrare direttamente oppure estendere.
  • Alla creazione verifica che le regole esistano in entrambe le direzioni.

Aggiunto in Data.Mapster il nuovo AddDataMapster, con una configurazione dedicata e un IDataMapper entrambi separati dall'IMapper dell'applicazione.

Bug corretto nel FilterProvider: la ricerca per Id non trovava i documenti con chiave string salvata come ObjectId. Riguardava anche il repository diretto.

Related issues

Task 23486

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other

Checklist

  • I have read the CONTRIBUTING guidelines
  • The build passes (dotnet build --configuration Release)
  • Tests pass (dotnet test --configuration Release)
  • I have added/updated tests where relevant
  • I have updated the documentation where relevant

@gmasci-ca
gmasci-ca merged commit 622c8b4 into main Sep 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants