So I have this piece of code :
var imageList = (from stepImages in xrmContext.SdkMessageProcessingStepImageSet
where stepImages.IsNotNull() && stepImages.SdkMessageProcessingStepId.Id == tempPluginStep.steps.Id
select new
{
stepImages
}).ToList();
The problem with it is that it’s returning a “Sequence contains no element” exception and I though .ToList would return an empty IEnumerable if there was no elements selected. What seem to be the problem?
Try replacing this:
With: