Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
public RelatedLinks RelevantLinks { get; set; }
If RelevantLinks is empty, I get this error
InvalidOperationException: {"Sequence contains no elements"}, but i want it to be empty.
What line is throwing that exception. Do you need to replace RelevantLinks.First() with RelevantLinks.FirstOrDefault()?
RelevantLinks.First()
RelevantLinks.FirstOrDefault()
It's throwing the exception when I try to store it into my Ditto model. I'm not usnig First() or FirstOrDefault() yet. I haven't begun trying to pull the data, it's erroring before I can even do that.
Bums. Sounds like a Ditto issue. You might have more luck posting it on that forum.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Error on using RelatedLink with Ditto and Jeavon Property Converter
If RelevantLinks is empty, I get this error
InvalidOperationException: {"Sequence contains no elements"}, but i want it to be empty.
What line is throwing that exception. Do you need to replace
RelevantLinks.First()
withRelevantLinks.FirstOrDefault()
?It's throwing the exception when I try to store it into my Ditto model. I'm not usnig First() or FirstOrDefault() yet. I haven't begun trying to pull the data, it's erroring before I can even do that.
Bums. Sounds like a Ditto issue. You might have more luck posting it on that forum.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.