Files

8 lines
236 B
C#
Raw Permalink Normal View History

using System.Linq.Expressions;
namespace WatchIt.DTO.Query;
public abstract record Filter<T>(Expression<Func<T, bool>> Condition)
{
public static implicit operator Expression<Func<T, bool>>(Filter<T> filter) => filter.Condition;
}