Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better detection of string store types on primitive collections #30920

Merged
merged 2 commits into from
May 18, 2023

Conversation

ajcvickers
Copy link
Member

Fixes #30919

@ajcvickers ajcvickers requested a review from a team May 18, 2023 09:24
property.SetIsFixedLength(fixedLength);
entityType.Model.FinalizeModel();

var typeMapping = CreateRelationalTypeMappingSource().GetMapping((IProperty)property);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can assert that the returned type mapping has a non-null ElementTypeMapping (that's how we recognize primitive collections). Also in other tests looking at primitive collection mappings.

@ajcvickers ajcvickers merged commit 5e1469c into main May 18, 2023
@ajcvickers ajcvickers deleted the 230517_NNNNational0517 branch May 18, 2023 15:20
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.

Using "nvarchar" for explicit store type of primitive collection throws
2 participants