/// <summary> /// Sort IQueryable<TEntity> by individual property name. /// </summary> /// <param name="input"> The IQueryable to be sorted<TEntity>. </param>. /// <param name="propName"> The name of the property to be sorted. </param> /// <param name="isDesc"> Indicates whether the sort is descending. </param> /// </returns> Unapplied sorted IQueryable<TEntity>. </returns>. public static IQueryable<TEntity> OrderBy<TEntity>(this IQueryable<TEntity> input, string propName, bool isDesc) { // Realization } /// <summary> /// Sort the IQueryable<TEntity> by the two property names. /// </summary> /// <param name="input"> The IQueryable to be sorted<TEntity>. </param>. /// <param name="propName"> The name of the first property to be sorted. </param> /// <param name="isDesc"> Whether the first sort is descending. </param> /// <param name="propName2"> The name of the second property to be sorted. </param> /// <param name="isDesc2"> Whether the second sort is descending. </param> /// </returns> Unapplied sorted IQueryable<TEntity>. </returns>. public static IQueryable<TEntity> OrderBy<TEntity>(this IQueryable<TEntity> input, string propName, bool isDesc, string propName2, bool isDesc2) { // Realization } /// <summary> /// Sort the IQueryable<TEntity> by the three property names. /// </summary> /// <param name="input"> The IQueryable to be sorted<TEntity>. </param>. /// <param name="propName"> The name of the first property to be sorted. </param> /// <param name="isDesc"> Whether the first sort is descending. </param> /// <param name="propName2"> The name of the second property to be sorted. </param> /// <param name="isDesc2"> Whether the second sort is descending. </param> /// <param name="propName3"> The name of the third property to be sorted. </param> /// <param name="isDesc3"> Whether the third sort is descending. </param> /// </returns> Unapplied sorted IQueryable<TEntity>. </returns>. public static IQueryable<TEntity> OrderBy<TEntity>(this IQueryable<TEntity> input, string propName, bool isDesc, string propName2, bool isDesc2, string propName3, bool isDesc3) { // Realization } /// <summary> /// Sort IQueryable<TEntity> by multiple property names. The property names and sort direction are provided via an array. /// </summary> /// <param name="input"> The IQueryable to be sorted<TEntity>. </param>. /// <param name="isDesc"> Whether all sorting should be descending; this parameter may not be used directly in variable parameter scenarios, but rather as an identifier for method overloading. </param> /// <param name="propNames"> Array of property names to sort. </param> /// </returns> Unapplied sorted IQueryable<TEntity>. </returns>. public static IQueryable<TEntity> OrderBy<TEntity>(this IQueryable<TEntity> input, bool isDesc, params string[] propNames) { // Realization } /// <summary> /// Sort the IQueryable<TEntity> based on the sorting information in the IQueryModel. /// </summary> /// <param name="input"> The IQueryable to be sorted<TEntity>. </param>. /// <param name="queryModel"> The IQueryModel containing the sorting information. </param> /// </returns> Unapplied sorted IQueryable<TEntity>. </returns>. public static IQueryable<TEntity> OrderBy<TEntity>(this IQueryable<TEntity> input, IQueryModel queryModel) { // Realization } /// <summary> /// Sort the IQueryable<TEntity> by the sorted items in the OrderByItem array. /// </summary> /// <param name="input"> The IQueryable to be sorted<TEntity>. </param>. /// <param name="orderByItems"> An array of OrderByItems containing the sort attributes and the direction of the sort. </param> /// </returns> Unapplied sorted IQueryable<TEntity>. </returns>. public static IQueryable<TEntity> OrderBy<TEntity>(this IQueryable<TEntity> input, params OrderByItem[] orderByItems) { // Realization } /// <summary> /// Sort the IQueryable<TEntity> by the sorted items in the OrderByItem list. /// </summary> /// <param name="input"> The IQueryable to be sorted<TEntity>. </param>. /// <param name="orderByItems"> A list of OrderByItems containing the sort attribute and sort direction. </param> /// </returns> Unapplied sorted IQueryable<TEntity>. </returns>. public static IQueryable<TEntity> OrderBy<TEntity>(this IQueryable<TEntity> input, List<OrderByItem> orderByItems) { // Realization }
Location>code7788
>text
Dynamic query new experience
Popularity:755 ℃/2024-08-14 11:05:55