Skip to content

Support value generation for converted types#27759

Merged
ajcvickers merged 2 commits intomainfrom
SevenNationArmy0307
Apr 7, 2022
Merged

Support value generation for converted types#27759
ajcvickers merged 2 commits intomainfrom
SevenNationArmy0307

Conversation

@ajcvickers
Copy link
Contributor

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 force-pushed the SevenNationArmy0307 branch from 1baf270 to b2a580f Compare April 6, 2022 11:30
@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