mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
19 lines
376 B
C#
19 lines
376 B
C#
using System;
|
|
using System.Linq;
|
|
|
|
namespace Remotely.Server.Extensions;
|
|
|
|
public static class IQueryableExtensions
|
|
{
|
|
public static IQueryable<T> Apply<T>(this IQueryable<T> query, Action<IQueryable<T>>? queryBuilder)
|
|
{
|
|
if (queryBuilder is null)
|
|
{
|
|
return query;
|
|
}
|
|
|
|
queryBuilder.Invoke(query);
|
|
return query;
|
|
}
|
|
}
|