Best practice for accessing Values/OneOrMany objects? #44
Unanswered
kirk-marple
asked this question in
Q&A
Replies: 1 comment
-
I've just checked in some code that will allow you do do this:
This is using implicit conversion operators. Thanks for the idea. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Where 'album' is MusicAlbum, and Author is set as a Person.
Is there a better way to access the author name than this?
album.Author.Value.Value2.FirstOrDefault().Name.Value.FirstOrDefault()
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions