dotnet / dotnet/efcore

Missing lambda-based value converter model building APIs for ElementTypeBuilder.HasConversion

Open
#31,514 0 comments 0 reactions 0 assignees View on GitHub
area-model-building area-primitive-collections
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

ElementType.HasConversion has HasConversion accepting a value converter type, but no easier lambda-based overloads like we do on PropertyBuilder.HasConversion.

IIRC we maybe said we won't introduce these because expression lambdas are incompatible with the compiled model; however, we now have the ability to generate them (with LinqToCSharpSyntaxTranslator), so we should consider adding the overloads. Even if we don't support these overloads with the compiled model for 8.0, the situation would be the same as with PropertyBuilder.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.