@@ -82,6 +82,27 @@ public static ODataQuery<T> OData<T>(this IQueryable<T> query, Action<ODataSetti
8282 return dataQuery ;
8383 }
8484
85+ /// <summary>
86+ /// The select and expand query options.
87+ /// </summary>
88+ /// <param name="query">
89+ /// The OData aware query.
90+ /// </param>
91+ /// <param name="selectText">
92+ /// The $select parameter text.
93+ /// </param>
94+ /// <param name="expandText">
95+ /// The $expand parameter text.
96+ /// </param>
97+ /// <param name="entitySetName">
98+ /// The entity set name.
99+ /// </param>
100+ /// <typeparam name="T">
101+ /// The query type param
102+ /// </typeparam>
103+ /// <returns>
104+ /// The <see cref="IEnumerable{ISelectExpandWrapper}"/> selection result in specific format.
105+ /// </returns>
85106 public static IEnumerable < ISelectExpandWrapper > SelectExpand < T > (
86107 this ODataQuery < T > query ,
87108 string selectText = null ,
@@ -100,6 +121,27 @@ public static IEnumerable<ISelectExpandWrapper> SelectExpand<T>(
100121 return result . OfType < ISelectExpandWrapper > ( ) ;
101122 }
102123
124+ /// <summary>
125+ /// The Filter.
126+ /// </summary>
127+ /// <param name="query">
128+ /// The OData aware query.
129+ /// </param>
130+ /// <param name="filterText">
131+ /// The $filter parameter text.
132+ /// </param>
133+ /// <param name="entitySetName">
134+ /// The entity set name.
135+ /// </param>
136+ /// <typeparam name="T">
137+ /// The query type param
138+ /// </typeparam>
139+ /// <returns>
140+ /// The <see cref="ODataQuery{T}"/> query with applied filter parameter.
141+ /// </returns>
142+ /// <exception cref="ArgumentNullException">
143+ /// Argument Null Exception
144+ /// </exception>
103145 public static ODataQuery < T > Filter < T > ( this ODataQuery < T > query , string filterText , string entitySetName = null )
104146 {
105147 if ( query == null ) throw new ArgumentNullException ( nameof ( query ) ) ;
@@ -130,15 +172,38 @@ public static ODataQuery<T> Filter<T>(this ODataQuery<T> query, string filterTex
130172 return new ODataQuery < T > ( result , query . ServiceProvider ) ;
131173 }
132174
175+ /// <summary>
176+ /// The OrderBy.
177+ /// </summary>
178+ /// <param name="query">
179+ /// The OData aware query.
180+ /// </param>
181+ /// <param name="orderbyText">
182+ /// The $orderby parameter text.
183+ /// </param>
184+ /// <param name="entitySetName">
185+ /// The entity set name.
186+ /// </param>
187+ /// <typeparam name="T">
188+ /// The query type param
189+ /// </typeparam>
190+ /// <returns>
191+ /// The <see cref="ODataQuery{T}"/> query with applied order by parameter.
192+ /// </returns>
193+ /// <exception cref="ArgumentNullException">
194+ /// Argument Null Exception
195+ /// </exception>
133196 public static IOrderedQueryable < T > OrderBy < T > ( this ODataQuery < T > query , string orderbyText , string entitySetName = null )
134197 {
135198 if ( query == null ) throw new ArgumentNullException ( nameof ( query ) ) ;
136199 if ( orderbyText == null ) throw new ArgumentNullException ( nameof ( orderbyText ) ) ;
137200
138201 IEdmModel edmModel = query . EdmModel ;
139-
140- ODataQueryOptionParser queryOptionParser = GetParser ( query , entitySetName ,
141- new Dictionary < string , string > { { "$orderby" , orderbyText } } ) ;
202+
203+ ODataQueryOptionParser queryOptionParser = GetParser (
204+ query ,
205+ entitySetName ,
206+ new Dictionary < string , string > { { "$orderby" , orderbyText } } ) ;
142207
143208 ODataSettings settings = query . ServiceProvider . GetRequiredService < ODataSettings > ( ) ;
144209
0 commit comments