Refactoring, database structure changed
This commit is contained in:
8
WatchIt.DTO/Query/Filter.cs
Normal file
8
WatchIt.DTO/Query/Filter.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user