dotnet / dotnet/efcore

Cosmos: Advanced type mapping inference (for scalar collections)

Offen
#34,026 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area-cosmos area-primitive-collections area-query consider-for-next-release
Vorherrschende Sprache
C#
Sterne
14.8k
Forks
3.4k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

In various places in the Cosmos scalar collection implementation, we currently simply infer an array's type mapping from its CLR type; this loses type mapping information that may be configured on the array's element. Since Cosmos uses very little type mapping information, this mainly means that arrays over elements with value converters don't function correctly.

We should port over RelationalTypeMappingPostprocessor, which is a post-processing step for advanced type mapping inference from elements back to the arrays the came from.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by locating the Cosmos scalar collection implementation and the existing RelationalTypeMappingPostprocessor. Compare how relational inference propagates element mappings back to arrays, then verify that Cosmos arrays over elements with value converters retain the configured mapping.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
databases
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.