private SparseFieldSetExpression GetSparseFieldSet(string parameterValue, ResourceContext resourceContext) { SparseFieldSetExpression sparseFieldSet = _sparseFieldSetParser.Parse(parameterValue, resourceContext); if (sparseFieldSet == null) { // We add ID on an incoming empty fieldset, so that callers can distinguish between no fieldset and an empty one. AttrAttribute idAttribute = resourceContext.Attributes.Single(attribute => attribute.Property.Name == nameof(Identifiable.Id)); return(new SparseFieldSetExpression(ArrayFactory.Create(idAttribute))); } return(sparseFieldSet); }
private SparseFieldSetExpression GetSparseFieldSet(string parameterValue, ResourceFieldChainExpression scope) { ResourceContext resourceContextInScope = GetResourceContextForScope(scope); return(_sparseFieldSetParser.Parse(parameterValue, resourceContextInScope)); }
private SparseFieldSetExpression GetSparseFieldSet(string parameterValue, ResourceContext resourceContext) { return(_sparseFieldSetParser.Parse(parameterValue, resourceContext)); }