using HealthMonitor.Util.QueryObjects; namespace HealthMonitor.Core.Query.Extensions { public static class QueryConditionsExt { public static IQueryable QueryConditions(this IQueryable query, IEnumerable conditions) { var parser = new QueryExpressionParser(); var filter = parser.ParserConditions(conditions); return query.Where(filter); } } }