Browse Source

PredicateBuilder add Custom for complex expression

HOME 2 years ago
parent
commit
ba02b3dcda
1 changed files with 2 additions and 0 deletions
  1. 2 0
      VCommon/Linq.Expressions.Predicate/PredicateBuilder.cs

+ 2 - 0
VCommon/Linq.Expressions.Predicate/PredicateBuilder.cs

@@ -15,6 +15,8 @@ namespace VCommon.Linq.Expressions.Predicate
         {
         }
 
+        public PredicateWrap<T> Custom(Expression<Func<T, bool>> expression) => expression;
+
         public PredicateWrap<T> In<TV>(Expression<Func<T, TV>> selector, IEnumerable<TV> checkIn)
         {
             if (checkIn == null) return null;