Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Unassigned: SelectExpandQueryOption doesn't create the select expand clause properly [1643]

$
0
0
```
public SelectExpandClause SelectExpandClause
{
get
{
if (_selectExpandClause == null)
{
ODataUriParser uriParser = new ODataUriParser(Context.Model, serviceRoot: null);
_selectExpandClause = uriParser.ParseSelectAndExpand(RawSelect, RawExpand, _entityType, entitySetBase: null);
}

return _selectExpandClause;
}
}
```

In the above code where we create the SelectSexpandClause, we pass null to the entitySetBase. This results in a SelectExpandClause whose EntitySet properties are null, which makes very hard to do any kind of validation.

We should pass in the right EntitySet to the clause.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>