1234567891011121314151617181920 |
- using System.Linq.Expressions;
- namespace Edge.Core.Core.database
- {
- public static class QueryableExtensions
- {
-
-
-
-
-
-
-
-
- public static IQueryable<T> WhereIf<T>(this IQueryable<T> query, bool condition, Expression<Func<T, bool>> predicate)
- {
- return condition ? query.Where(predicate) : query;
- }
- }
- }
|