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

Support value generation for converted types #27759

Merged
merged 2 commits into from
Apr 7, 2022
Merged

Conversation

ajcvickers
Copy link
Member

Providers may need to be updated to support this.

Fixes #11597

@ajcvickers ajcvickers requested a review from a team April 5, 2022 15:58
Copy link
Member

@AndriySvyryd AndriySvyryd left a comment

Choose a reason for hiding this comment

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

This also fixes #17962

/// <param name="clrType">X</param>
/// <returns>X</returns>
protected virtual ValueGenerator? FindForType(IProperty property, IEntityType entityType, Type clrType)
=> clrType == typeof(Guid)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: a switch may be a bit more readable

Providers may need to be updated to support this.

Fixes #11597
@ajcvickers ajcvickers merged commit 73db32d into main Apr 7, 2022
@ajcvickers ajcvickers deleted the SevenNationArmy0307 branch April 7, 2022 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support value generation with converters
3 participants