You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

QueryConditionsExt.cs 454B

1234567891011121314
  1. using HealthMonitor.Util.QueryObjects;
  2. namespace HealthMonitor.Core.Query.Extensions
  3. {
  4. public static class QueryConditionsExt
  5. {
  6. public static IQueryable<T> QueryConditions<T>(this IQueryable<T> query, IEnumerable<QueryFilterCondition> conditions)
  7. {
  8. var parser = new QueryExpressionParser<T>();
  9. var filter = parser.ParserConditions(conditions);
  10. return query.Where(filter);
  11. }
  12. }
  13. }