-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Mapping to a ValueTuple with 8 or more elements only retrieves some columns #982
Comments
Yeah, I need to fix that. That's my bad.
…On Tue, 27 Mar 2018, 22:35 Arturo Torres Sánchez, ***@***.***> wrote:
I'm not sure if mapping to ValueTuples is supported 100%, but I noticed
that if the tuple has 8 or more elements, only the first 7 are mapped and
the rest are filled with default values. My guess is that tuples with more
items are defined as an 8-tuple with a TRest parameter that is another
tuple.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#982>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDsMyEBMrPQn2PGN8Aa_t9x7uyFiReks5tirCIgaJpZM4S9rR_>
.
|
I started working on this. There appear to be two options: add a new API which is more powerful than IMemberMap, capable of setting The API route is more appealing to me because I've wanted it for user code in the past, so I asked about it in the v2 planning thread:
@mgravell Please let me know if I missed anything. In the meantime, I'll assume the worst and work on a special-casing implementation that doesn't use the mapping API. Unit tests for
|
Pull request is ready for review! #1242 |
Awesome! 4-day weekend here and most of it has been pre-booked for family stuff, but I'll see if I can review this in the week. Much appreciated. |
I'm not sure if mapping to ValueTuples is supported 100%, but I noticed that if the tuple has 8 or more elements, only the first 7 are mapped and the rest are filled with default values. My guess is that tuples with more items are defined as an 8-tuple with a TRest parameter that is another tuple.
The text was updated successfully, but these errors were encountered: