Skip to content

Commit

Permalink
Merge pull request #12 from RicardoZambon/features/new-extension-methods
Browse files Browse the repository at this point in the history
feat: change visibility for filters extension methods
  • Loading branch information
RicardoZambon authored May 13, 2024
2 parents 5e56632 + c193744 commit 8aa7e4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ZWebAPI/ExtensionMethods/QueryableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static IQueryable<TEntity> GetRange<TEntity>(this IQueryable<TEntity> que
/// <param name="property">The property.</param>
/// <param name="filterType">Type of the filter.</param>
/// <returns>Return the query filtered.</returns>
public static IQueryable<TEntity> TryFilter<TEntity>(this IQueryable<TEntity> query, IListParameters parameters, string property, FilterTypes filterType)
public static IQueryable<TEntity> TryFilter<TEntity>(this IQueryable<TEntity> query, ISummaryParameters parameters, string property, FilterTypes filterType)
{
return query.TryFilter(parameters, property, property, filterType);
}
Expand All @@ -105,7 +105,7 @@ public static IQueryable<TEntity> TryFilter<TEntity>(this IQueryable<TEntity> qu
/// <param name="filterType">Type of the filter.</param>
/// <returns>Return the query filtered.</returns>
/// <exception cref="System.Exception">The property {typeProperty} was not found in the type {(filterProperty?.PropertyType ?? typeof(TEntity)).Name}.</exception>
public static IQueryable<TEntity> TryFilter<TEntity>(this IQueryable<TEntity> query, IListParameters parameters, string property, string parameterName, FilterTypes filterType)
public static IQueryable<TEntity> TryFilter<TEntity>(this IQueryable<TEntity> query, ISummaryParameters parameters, string property, string parameterName, FilterTypes filterType)
{
PropertyInfo? filterProperty = null;

Expand Down
2 changes: 1 addition & 1 deletion ZWebAPI/ExtensionMethods/SummaryParametersExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace ZWebAPI.ExtensionMethods
/// <summary>
/// Extension methods for <see cref="ZWebAPI.Interfaces.ISummaryParameters"/>.
/// </summary>
internal static class SummaryParametersExtensions
public static class SummaryParametersExtensions
{
/// <summary>
/// Determines whether the summary parameters has filters.
Expand Down

0 comments on commit 8aa7e4d

Please sign in to comment.