I'm trying to get a specific value Item from the CustomSetValues Data adapter. When I use the normal processor adapter I can use a link statement to query it, like this
var guestInRoom =DataAdapter.ValueItems.FirstOrDefault( x => x.AlternateId == folderRoomHotel.AlternateId + "/GuestInRoom");
But the CustomSetValues adapter won't allow me to, how should I get a specific valueItem from the adapter list other than a foreach loop ?
Can you give us more details about how it is not letting you? Are you receiving an exception, or is the method simply not available to you?
The Methods for the list are not available. So I have no way to query it.
Thanks the quick reply.
Can you share your class with me so that I can take a look? Feel free to send it via email. As far as I can tell, something like the below should work just fine.
public class CustomSetValues : MongooseSetValuesProcessor
protected override ResultType SetValue(ValueTypeStateless item)
var someValueItem = DataAdapter.Values.FirstOrDefault(a => a.AlternateId == "some id")
Here's a screen shot of the available methods the query methods are not present. The standard data adapter has options for FirstorDefault etc as your example shows.
I think you may be missing some "Using" statements. Please make sure that:
Are also being referenced in your code.