Skip to content

Partial fix to type mapping inference for primitive collections#31110

Merged
roji merged 1 commit intodotnet:mainfrom
roji:PrimitiveCollectionInference
Jun 21, 2023
Merged

Partial fix to type mapping inference for primitive collections#31110
roji merged 1 commit intodotnet:mainfrom
roji:PrimitiveCollectionInference

Conversation

@roji
Copy link
Member

@roji roji commented Jun 20, 2023

This is a targeted fix to #31030, but larger type mapping inference problems still remain in the context of primitive collections (see #31109). The issue is that we were checking reference identity between type mappings to detect conflicting/incompatible inferred mappings, but that's two strict, as there could exist two type mapping instances which are equal. Switching to comparing the store type instead.

@ajcvickers should we consider implementing Equals on type mappings, so the we can also make sure that e.g. value converters don't differ?

Closes #31030

@roji roji requested review from ajcvickers and maumar June 20, 2023 09:49
@roji roji force-pushed the PrimitiveCollectionInference branch from 6dbbcc9 to be7d331 Compare June 20, 2023 10:49
@roji roji merged commit 532482d into dotnet:main Jun 21, 2023
@roji roji deleted the PrimitiveCollectionInference branch June 21, 2023 21:00
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.

EF primitive collection - nested string comparison operations

2 participants