/// <summary> /// Create an expand item, using a navigationProperty, its entity set, and any expand options. /// </summary> /// <param name="pathToNavigationProperty">the path to the navigation property for this expand item, including any type segments</param> /// <param name="entitySet">the entity set for this expand level.</param> /// <param name="filterOption">A filter clause for this expand (can be null)</param> /// <param name="orderByOption">An Orderby clause for this expand (can be null)</param> /// <param name="topOption">A top clause for this expand (can be null)</param> /// <param name="skipOption">A skip clause for this expand (can be null)</param> /// <param name="inlineCountOption">An Inlinecount clause for this expand (can be null)</param> /// <param name="selectAndExpand">This level select and any sub expands for this expand item.</param> /// <exception cref="System.ArgumentNullException">Throws if input pathToNavigationProperty is null.</exception> internal ExpandedNavigationSelectItem( ODataExpandPath pathToNavigationProperty, IEdmEntitySet entitySet, FilterClause filterOption, OrderByClause orderByOption, long?topOption, long?skipOption, InlineCountKind?inlineCountOption, SelectExpandClause selectAndExpand) { DebugUtils.CheckNoExternalCallers(); ExceptionUtils.CheckArgumentNotNull(pathToNavigationProperty, "navigationProperty"); this.pathToNavigationProperty = pathToNavigationProperty; this.entitySet = entitySet; this.filterOption = filterOption; this.orderByOption = orderByOption; this.topOption = topOption; this.skipOption = skipOption; this.inlineCountOption = inlineCountOption; this.selectAndExpand = selectAndExpand; }
/// <summary> /// Create an Expand item using a nav prop, its entity set and a SelectExpandClause /// </summary> /// <param name="pathToNavigationProperty">the path to the navigation property for this expand item, including any type segments</param> /// <param name="entitySet">the entity set for this ExpandItem</param> /// <param name="selectExpandOption">This level select and any sub expands for this expand item.</param> /// <exception cref="System.ArgumentNullException">Throws if input pathToNavigationProperty is null.</exception> public ExpandedNavigationSelectItem(ODataExpandPath pathToNavigationProperty, IEdmEntitySet entitySet, SelectExpandClause selectExpandOption) : this(pathToNavigationProperty, entitySet, null, null, null, null, null, selectExpandOption) { }