dotnet / dotnet/efcore

Implement value conversions that spread out over multiple columns

Open
#31,234 3 comments 16 reactions 0 assignees View on GitHub
area-complex-types area-relational-mapping needs-design
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Multi-column value conversions were initially tracked by #13947 as a way to enable value objects, but we decided to instead implement them using complex types.

This issue tracks using value conversions as an alternative to complex types.

#### Pros

- How properties decompose into columns is more flexible (e.g. two properties can be stored in one column or viceversa)

#### Cons

- Opaque to queries (i.e. individual properties participating in a multi-column value conversion can't be used in conditions or projections)

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.