2018-10-17 22:14:21 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using PoweredSoft.DynamicQuery.Core;
|
|
|
|
|
|
|
|
|
|
namespace PoweredSoft.DynamicQuery
|
|
|
|
|
{
|
|
|
|
|
public abstract class Filter : IFilter
|
|
|
|
|
{
|
|
|
|
|
public bool? And { get; set; }
|
|
|
|
|
public FilterType Type { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class SimpleFilter : ISimpleFilter
|
|
|
|
|
{
|
|
|
|
|
public bool? And { get; set; }
|
2019-10-13 15:06:47 -04:00
|
|
|
|
public bool? Not { get; set; }
|
2018-10-17 22:14:21 -04:00
|
|
|
|
public FilterType Type { get; set; }
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
public object Value { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class CompositeFilter : ICompositeFilter
|
|
|
|
|
{
|
|
|
|
|
public bool? And { get; set; }
|
|
|
|
|
public FilterType Type { get; set; } = FilterType.Composite;
|
|
|
|
|
public List<IFilter> Filters { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|