renamed to better names.
This commit is contained in:
parent
71b207ef78
commit
f146c00ac4
@ -15,7 +15,7 @@ namespace PoweredSoft.DynamicLinq.EntityFramework
|
|||||||
.GetMethods(BindingFlags.Static | BindingFlags.Public)
|
.GetMethods(BindingFlags.Static | BindingFlags.Public)
|
||||||
.First(t => t.Name == "Query" && t.IsGenericMethod);
|
.First(t => t.Name == "Query" && t.IsGenericMethod);
|
||||||
|
|
||||||
public static IQueryable Query(this DbContext context, Type pocoType, Action<QueryBuilderBase> callback)
|
public static IQueryable Query(this DbContext context, Type pocoType, Action<WhereBuilderBase> callback)
|
||||||
{
|
{
|
||||||
var method = QueryMethod.MakeGenericMethod(pocoType);
|
var method = QueryMethod.MakeGenericMethod(pocoType);
|
||||||
var invokeResult = method.Invoke(null, new object[] {context, callback});
|
var invokeResult = method.Invoke(null, new object[] {context, callback});
|
||||||
@ -23,7 +23,7 @@ namespace PoweredSoft.DynamicLinq.EntityFramework
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IQueryable<T> Query<T>(this DbContext context, Action<QueryBuilderBase> callback)
|
public static IQueryable<T> Query<T>(this DbContext context, Action<WhereBuilderBase> callback)
|
||||||
where T : class
|
where T : class
|
||||||
{
|
{
|
||||||
var query = context.Set<T>().AsQueryable();
|
var query = context.Set<T>().AsQueryable();
|
||||||
@ -31,10 +31,10 @@ namespace PoweredSoft.DynamicLinq.EntityFramework
|
|||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IQueryable Where(this DbContext context, Type pocoType, Action<QueryBuilderBase> callback)
|
public static IQueryable Where(this DbContext context, Type pocoType, Action<WhereBuilderBase> callback)
|
||||||
=> context.Query(pocoType, callback);
|
=> context.Query(pocoType, callback);
|
||||||
|
|
||||||
public static IQueryable<T> Where<T>(this DbContext context, Action<QueryBuilderBase> callback)
|
public static IQueryable<T> Where<T>(this DbContext context, Action<WhereBuilderBase> callback)
|
||||||
where T : class => context.Query<T>(callback);
|
where T : class => context.Query<T>(callback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ namespace PoweredSoft.DynamicLinq.Test
|
|||||||
|
|
||||||
// the query.
|
// the query.
|
||||||
var query = posts.AsQueryable();
|
var query = posts.AsQueryable();
|
||||||
var queryBuilder = new QueryBuilder<Post>(query);
|
var queryBuilder = new WhereBuilder<Post>(query);
|
||||||
|
|
||||||
queryBuilder.Compare("AuthorId", ConditionOperators.Equal, 1);
|
queryBuilder.Compare("AuthorId", ConditionOperators.Equal, 1);
|
||||||
queryBuilder.And(subQuery =>
|
queryBuilder.And(subQuery =>
|
||||||
@ -82,7 +82,7 @@ namespace PoweredSoft.DynamicLinq.Test
|
|||||||
|
|
||||||
// the query.
|
// the query.
|
||||||
var query = posts.AsQueryable();
|
var query = posts.AsQueryable();
|
||||||
var queryBuilder = new PoweredSoft.DynamicLinq.Fluent.SortBuilder<Post>(query);
|
var queryBuilder = new PoweredSoft.DynamicLinq.Fluent.OrderByBuilder<Post>(query);
|
||||||
|
|
||||||
// add some sorting.
|
// add some sorting.
|
||||||
queryBuilder
|
queryBuilder
|
||||||
|
@ -14,10 +14,10 @@ namespace PoweredSoft.DynamicLinq
|
|||||||
QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> list.AsQueryable().Where(path, conditionOperator, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> list.AsQueryable().Where(path, conditionOperator, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public static IEnumerable<T> Where<T>(this IEnumerable<T> list, Action<QueryBuilder<T>> callback)
|
public static IEnumerable<T> Where<T>(this IEnumerable<T> list, Action<WhereBuilder<T>> callback)
|
||||||
=> list.Query(callback);
|
=> list.Query(callback);
|
||||||
|
|
||||||
public static IEnumerable<T> Query<T>(this IEnumerable<T> list, Action<QueryBuilder<T>> callback)
|
public static IEnumerable<T> Query<T>(this IEnumerable<T> list, Action<WhereBuilder<T>> callback)
|
||||||
=> list.AsQueryable().Query(callback);
|
=> list.AsQueryable().Query(callback);
|
||||||
|
|
||||||
public static IEnumerable<T> Sort<T>(this IEnumerable<T> list, string path, QuerySortDirection sortDirection, bool appendSort)
|
public static IEnumerable<T> Sort<T>(this IEnumerable<T> list, string path, QuerySortDirection sortDirection, bool appendSort)
|
||||||
|
@ -19,12 +19,12 @@ namespace PoweredSoft.DynamicLinq
|
|||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IQueryable<T> Where<T>(this IQueryable<T> query, Action<QueryBuilder<T>> callback)
|
public static IQueryable<T> Where<T>(this IQueryable<T> query, Action<WhereBuilder<T>> callback)
|
||||||
=> query.Query(callback);
|
=> query.Query(callback);
|
||||||
|
|
||||||
public static IQueryable<T> Query<T> (this IQueryable<T> query, Action<QueryBuilder<T>> callback)
|
public static IQueryable<T> Query<T> (this IQueryable<T> query, Action<WhereBuilder<T>> callback)
|
||||||
{
|
{
|
||||||
var queryBuilder = new QueryBuilder<T>(query);
|
var queryBuilder = new WhereBuilder<T>(query);
|
||||||
callback(queryBuilder);
|
callback(queryBuilder);
|
||||||
var ret = queryBuilder.Build();
|
var ret = queryBuilder.Build();
|
||||||
return ret;
|
return ret;
|
||||||
@ -32,7 +32,7 @@ namespace PoweredSoft.DynamicLinq
|
|||||||
|
|
||||||
public static IQueryable<T> Sort<T>(this IQueryable<T> query, string path, QuerySortDirection sortDirection, bool appendSort)
|
public static IQueryable<T> Sort<T>(this IQueryable<T> query, string path, QuerySortDirection sortDirection, bool appendSort)
|
||||||
{
|
{
|
||||||
var qb = new SortBuilder<T>(query);
|
var qb = new OrderByBuilder<T>(query);
|
||||||
qb.Sort(path, sortDirection, appendSort);
|
qb.Sort(path, sortDirection, appendSort);
|
||||||
var ret = qb.Build();
|
var ret = qb.Build();
|
||||||
return ret;
|
return ret;
|
||||||
@ -40,7 +40,7 @@ namespace PoweredSoft.DynamicLinq
|
|||||||
|
|
||||||
public static IQueryable<T> OrderBy<T>(this IQueryable<T> query, string path)
|
public static IQueryable<T> OrderBy<T>(this IQueryable<T> query, string path)
|
||||||
{
|
{
|
||||||
var qb = new SortBuilder<T>(query);
|
var qb = new OrderByBuilder<T>(query);
|
||||||
qb.OrderBy(path);
|
qb.OrderBy(path);
|
||||||
var ret = qb.Build();
|
var ret = qb.Build();
|
||||||
return ret;
|
return ret;
|
||||||
@ -48,7 +48,7 @@ namespace PoweredSoft.DynamicLinq
|
|||||||
|
|
||||||
public static IQueryable<T> OrderByDescending<T>(this IQueryable<T> query, string path)
|
public static IQueryable<T> OrderByDescending<T>(this IQueryable<T> query, string path)
|
||||||
{
|
{
|
||||||
var qb = new SortBuilder<T>(query);
|
var qb = new OrderByBuilder<T>(query);
|
||||||
qb.OrderByDescending(path);
|
qb.OrderByDescending(path);
|
||||||
var ret = qb.Build();
|
var ret = qb.Build();
|
||||||
return ret;
|
return ret;
|
||||||
@ -56,7 +56,7 @@ namespace PoweredSoft.DynamicLinq
|
|||||||
|
|
||||||
public static IQueryable<T> ThenBy<T>(this IQueryable<T> query, string path)
|
public static IQueryable<T> ThenBy<T>(this IQueryable<T> query, string path)
|
||||||
{
|
{
|
||||||
var qb = new SortBuilder<T>(query);
|
var qb = new OrderByBuilder<T>(query);
|
||||||
qb.ThenBy(path);
|
qb.ThenBy(path);
|
||||||
var ret = qb.Build();
|
var ret = qb.Build();
|
||||||
return ret;
|
return ret;
|
||||||
@ -64,7 +64,7 @@ namespace PoweredSoft.DynamicLinq
|
|||||||
|
|
||||||
public static IQueryable<T> ThenByDescending<T>(this IQueryable<T> query, string path)
|
public static IQueryable<T> ThenByDescending<T>(this IQueryable<T> query, string path)
|
||||||
{
|
{
|
||||||
var qb = new SortBuilder<T>(query);
|
var qb = new OrderByBuilder<T>(query);
|
||||||
qb.ThenByDescending(path);
|
qb.ThenByDescending(path);
|
||||||
var ret = qb.Build();
|
var ret = qb.Build();
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -8,11 +8,11 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
{
|
{
|
||||||
public class SortBuilderBase
|
public class SortBuilderBase
|
||||||
{
|
{
|
||||||
public List<QueryBuilderSort> Sorts { get; protected set; } = new List<QueryBuilderSort>();
|
public List<OrderByPart> Sorts { get; protected set; } = new List<OrderByPart>();
|
||||||
|
|
||||||
public virtual SortBuilderBase Sort(string path, QuerySortDirection sortDirection, bool appendSort)
|
public virtual SortBuilderBase Sort(string path, QuerySortDirection sortDirection, bool appendSort)
|
||||||
{
|
{
|
||||||
Sorts.Add(new QueryBuilderSort
|
Sorts.Add(new OrderByPart
|
||||||
{
|
{
|
||||||
Path = path,
|
Path = path,
|
||||||
sortDirection = sortDirection,
|
sortDirection = sortDirection,
|
||||||
@ -24,7 +24,7 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
public virtual SortBuilderBase OrderBy(string path)
|
public virtual SortBuilderBase OrderBy(string path)
|
||||||
{
|
{
|
||||||
Sorts.Clear();
|
Sorts.Clear();
|
||||||
Sorts.Add(new QueryBuilderSort
|
Sorts.Add(new OrderByPart
|
||||||
{
|
{
|
||||||
Path = path,
|
Path = path,
|
||||||
sortDirection = QuerySortDirection.Ascending,
|
sortDirection = QuerySortDirection.Ascending,
|
||||||
@ -36,7 +36,7 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
public virtual SortBuilderBase OrderByDescending(string path)
|
public virtual SortBuilderBase OrderByDescending(string path)
|
||||||
{
|
{
|
||||||
Sorts.Clear();
|
Sorts.Clear();
|
||||||
Sorts.Add(new QueryBuilderSort
|
Sorts.Add(new OrderByPart
|
||||||
{
|
{
|
||||||
Path = path,
|
Path = path,
|
||||||
sortDirection = QuerySortDirection.Descending,
|
sortDirection = QuerySortDirection.Descending,
|
||||||
@ -47,7 +47,7 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
|
|
||||||
public virtual SortBuilderBase ThenBy(string path)
|
public virtual SortBuilderBase ThenBy(string path)
|
||||||
{
|
{
|
||||||
Sorts.Add(new QueryBuilderSort
|
Sorts.Add(new OrderByPart
|
||||||
{
|
{
|
||||||
Path = path,
|
Path = path,
|
||||||
sortDirection = QuerySortDirection.Ascending,
|
sortDirection = QuerySortDirection.Ascending,
|
||||||
@ -58,7 +58,7 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
|
|
||||||
public virtual SortBuilderBase ThenByDescending(string path)
|
public virtual SortBuilderBase ThenByDescending(string path)
|
||||||
{
|
{
|
||||||
Sorts.Add(new QueryBuilderSort
|
Sorts.Add(new OrderByPart
|
||||||
{
|
{
|
||||||
Path = path,
|
Path = path,
|
||||||
sortDirection = QuerySortDirection.Descending,
|
sortDirection = QuerySortDirection.Descending,
|
||||||
@ -68,11 +68,11 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SortBuilder<T> : SortBuilderBase
|
public class OrderByBuilder<T> : SortBuilderBase
|
||||||
{
|
{
|
||||||
public IQueryable<T> Query { get; }
|
public IQueryable<T> Query { get; }
|
||||||
|
|
||||||
public SortBuilder(IQueryable<T> query)
|
public OrderByBuilder(IQueryable<T> query)
|
||||||
{
|
{
|
||||||
Query = query;
|
Query = query;
|
||||||
}
|
}
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace PoweredSoft.DynamicLinq.Fluent
|
namespace PoweredSoft.DynamicLinq.Fluent
|
||||||
{
|
{
|
||||||
public class QueryBuilderSort
|
public class OrderByPart
|
||||||
{
|
{
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
|
|
@ -6,14 +6,14 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace PoweredSoft.DynamicLinq.Fluent
|
namespace PoweredSoft.DynamicLinq.Fluent
|
||||||
{
|
{
|
||||||
public class QueryBuilderFilter
|
public class WhereBuilderCondition
|
||||||
{
|
{
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
public ConditionOperators ConditionOperator { get; set; }
|
public ConditionOperators ConditionOperator { get; set; }
|
||||||
public object Value { get; set; }
|
public object Value { get; set; }
|
||||||
public bool And { get; set; }
|
public bool And { get; set; }
|
||||||
public QueryConvertStrategy ConvertStrategy { get; set; }
|
public QueryConvertStrategy ConvertStrategy { get; set; }
|
||||||
public List<QueryBuilderFilter> Filters { get; set; } = new List<QueryBuilderFilter>();
|
public List<WhereBuilderCondition> Conditions { get; set; } = new List<WhereBuilderCondition>();
|
||||||
public QueryCollectionHandling CollectionHandling { get; set; }
|
public QueryCollectionHandling CollectionHandling { get; set; }
|
||||||
public StringComparison? StringComparisation { get; set; } = null;
|
public StringComparison? StringComparisation { get; set; } = null;
|
||||||
}
|
}
|
@ -8,11 +8,11 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace PoweredSoft.DynamicLinq.Fluent
|
namespace PoweredSoft.DynamicLinq.Fluent
|
||||||
{
|
{
|
||||||
public class QueryBuilder<T> : QueryBuilderBase
|
public class WhereBuilder<T> : WhereBuilderBase
|
||||||
{
|
{
|
||||||
public IQueryable<T> Query { get; set; }
|
public IQueryable<T> Query { get; set; }
|
||||||
|
|
||||||
public QueryBuilder(IQueryable<T> query)
|
public WhereBuilder(IQueryable<T> query)
|
||||||
{
|
{
|
||||||
Query = query;
|
Query = query;
|
||||||
}
|
}
|
||||||
@ -37,7 +37,7 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual Expression<Func<T, bool>> BuildFilterExpression(ParameterExpression parameter, List<QueryBuilderFilter> filters)
|
protected virtual Expression<Func<T, bool>> BuildFilterExpression(ParameterExpression parameter, List<WhereBuilderCondition> filters)
|
||||||
{
|
{
|
||||||
Expression<Func<T, bool>> temp = null;
|
Expression<Func<T, bool>> temp = null;
|
||||||
|
|
||||||
@ -46,8 +46,8 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
filters.ForEach(filter =>
|
filters.ForEach(filter =>
|
||||||
{
|
{
|
||||||
Expression<Func<T, bool>> innerExpression;
|
Expression<Func<T, bool>> innerExpression;
|
||||||
if (filter.Filters?.Any() == true)
|
if (filter.Conditions?.Any() == true)
|
||||||
innerExpression = BuildFilterExpression(parameter, filter.Filters);
|
innerExpression = BuildFilterExpression(parameter, filter.Conditions);
|
||||||
else
|
else
|
||||||
innerExpression = BuildFilterExpression(parameter, filter);
|
innerExpression = BuildFilterExpression(parameter, filter);
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual Expression<Func<T, bool>> BuildFilterExpression(ParameterExpression parameter, QueryBuilderFilter filter)
|
protected virtual Expression<Func<T, bool>> BuildFilterExpression(ParameterExpression parameter, WhereBuilderCondition filter)
|
||||||
{
|
{
|
||||||
var ret = QueryableHelpers.CreateFilterExpression<T>(
|
var ret = QueryableHelpers.CreateFilterExpression<T>(
|
||||||
filter.Path,
|
filter.Path,
|
||||||
@ -84,9 +84,9 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override QueryBuilderBase GetSubQueryBuilder()
|
protected override WhereBuilderBase GetSubQueryBuilder()
|
||||||
{
|
{
|
||||||
return new QueryBuilder<T>(Query);
|
return new WhereBuilder<T>(Query);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,23 +7,23 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace PoweredSoft.DynamicLinq.Fluent
|
namespace PoweredSoft.DynamicLinq.Fluent
|
||||||
{
|
{
|
||||||
public abstract partial class QueryBuilderBase
|
public abstract partial class WhereBuilderBase
|
||||||
{
|
{
|
||||||
public bool IsNullCheckingEnabled { get; protected set; } = false;
|
public bool IsNullCheckingEnabled { get; protected set; } = false;
|
||||||
|
|
||||||
public List<QueryBuilderFilter> Filters { get; protected set; } = new List<QueryBuilderFilter>();
|
public List<WhereBuilderCondition> Filters { get; protected set; } = new List<WhereBuilderCondition>();
|
||||||
|
|
||||||
public virtual QueryBuilderBase NullChecking(bool check = true)
|
public virtual WhereBuilderBase NullChecking(bool check = true)
|
||||||
{
|
{
|
||||||
IsNullCheckingEnabled = check;
|
IsNullCheckingEnabled = check;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual QueryBuilderBase Compare(string path, ConditionOperators conditionOperators, object value,
|
public virtual WhereBuilderBase Compare(string path, ConditionOperators conditionOperators, object value,
|
||||||
QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField,
|
QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField,
|
||||||
bool and = true, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
bool and = true, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
{
|
{
|
||||||
Filters.Add(new QueryBuilderFilter
|
Filters.Add(new WhereBuilderCondition
|
||||||
{
|
{
|
||||||
And = and,
|
And = and,
|
||||||
ConditionOperator = conditionOperators,
|
ConditionOperator = conditionOperators,
|
||||||
@ -37,9 +37,9 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract QueryBuilderBase GetSubQueryBuilder();
|
protected abstract WhereBuilderBase GetSubQueryBuilder();
|
||||||
|
|
||||||
public virtual QueryBuilderBase SubQuery(Action<QueryBuilderBase> subQuery, bool and = true)
|
public virtual WhereBuilderBase SubQuery(Action<WhereBuilderBase> subQuery, bool and = true)
|
||||||
{
|
{
|
||||||
// create query builder for same type.
|
// create query builder for same type.
|
||||||
var qb = GetSubQueryBuilder();
|
var qb = GetSubQueryBuilder();
|
||||||
@ -49,9 +49,9 @@ namespace PoweredSoft.DynamicLinq.Fluent
|
|||||||
subQuery(qb);
|
subQuery(qb);
|
||||||
|
|
||||||
// create a query part.
|
// create a query part.
|
||||||
var part = new QueryBuilderFilter();
|
var part = new WhereBuilderCondition();
|
||||||
part.And = and;
|
part.And = and;
|
||||||
part.Filters = qb.Filters;
|
part.Conditions = qb.Filters;
|
||||||
Filters.Add(part);
|
Filters.Add(part);
|
||||||
|
|
||||||
//return self.
|
//return self.
|
@ -4,140 +4,140 @@ using System.Text;
|
|||||||
|
|
||||||
namespace PoweredSoft.DynamicLinq.Fluent
|
namespace PoweredSoft.DynamicLinq.Fluent
|
||||||
{
|
{
|
||||||
public abstract partial class QueryBuilderBase
|
public abstract partial class WhereBuilderBase
|
||||||
{
|
{
|
||||||
public QueryBuilderBase And(string path, ConditionOperators conditionOperator, object value,
|
public WhereBuilderBase And(string path, ConditionOperators conditionOperator, object value,
|
||||||
QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> Compare(path, conditionOperator, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, and: true, stringComparision: stringComparision);
|
=> Compare(path, conditionOperator, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, and: true, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase Or(string path, ConditionOperators conditionOperator, object value,
|
public WhereBuilderBase Or(string path, ConditionOperators conditionOperator, object value,
|
||||||
QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> Compare(path, conditionOperator, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, and: false, stringComparision: stringComparision);
|
=> Compare(path, conditionOperator, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, and: false, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase And(Action<QueryBuilderBase> subQuery)
|
public WhereBuilderBase And(Action<WhereBuilderBase> subQuery)
|
||||||
=> SubQuery(subQuery, true);
|
=> SubQuery(subQuery, true);
|
||||||
|
|
||||||
public QueryBuilderBase Or(Action<QueryBuilderBase> subQuery)
|
public WhereBuilderBase Or(Action<WhereBuilderBase> subQuery)
|
||||||
=> SubQuery(subQuery, false);
|
=> SubQuery(subQuery, false);
|
||||||
|
|
||||||
#region equal
|
#region equal
|
||||||
public QueryBuilderBase Equal(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase Equal(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.Equal, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.Equal, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase AndEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase AndEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.Equal, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.Equal, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase OrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase OrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> Or(path, ConditionOperators.Equal, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> Or(path, ConditionOperators.Equal, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region not equal
|
#region not equal
|
||||||
public QueryBuilderBase NotEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase NotEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.NotEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.NotEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase AndNotEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase AndNotEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.NotEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.NotEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase OrNotEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase OrNotEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> Or(path, ConditionOperators.NotEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> Or(path, ConditionOperators.NotEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region GreaterThan
|
#region GreaterThan
|
||||||
public QueryBuilderBase GreaterThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase GreaterThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> And(path, ConditionOperators.GreaterThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> And(path, ConditionOperators.GreaterThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
|
|
||||||
public QueryBuilderBase AndGreaterThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase AndGreaterThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> And(path, ConditionOperators.GreaterThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> And(path, ConditionOperators.GreaterThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
|
|
||||||
public QueryBuilderBase OrGreaterThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase OrGreaterThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> Or(path, ConditionOperators.GreaterThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> Or(path, ConditionOperators.GreaterThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region GreaterThanOrEqual
|
#region GreaterThanOrEqual
|
||||||
public QueryBuilderBase GreaterThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase GreaterThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> And(path, ConditionOperators.GreaterThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> And(path, ConditionOperators.GreaterThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
|
|
||||||
public QueryBuilderBase AndGreaterThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase AndGreaterThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> And(path, ConditionOperators.GreaterThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> And(path, ConditionOperators.GreaterThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
|
|
||||||
public QueryBuilderBase OrGreaterThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase OrGreaterThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> Or(path, ConditionOperators.GreaterThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> Or(path, ConditionOperators.GreaterThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region LessThan
|
#region LessThan
|
||||||
public QueryBuilderBase LessThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase LessThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> And(path, ConditionOperators.LessThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> And(path, ConditionOperators.LessThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
|
|
||||||
public QueryBuilderBase AndLessThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase AndLessThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> And(path, ConditionOperators.LessThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> And(path, ConditionOperators.LessThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
|
|
||||||
public QueryBuilderBase OrLessThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase OrLessThan(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> Or(path, ConditionOperators.LessThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> Or(path, ConditionOperators.LessThan, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region LessThanOrEqual
|
#region LessThanOrEqual
|
||||||
public QueryBuilderBase LessThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase LessThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> And(path, ConditionOperators.LessThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> And(path, ConditionOperators.LessThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
|
|
||||||
public QueryBuilderBase AndLessThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase AndLessThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> And(path, ConditionOperators.LessThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> And(path, ConditionOperators.LessThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
|
|
||||||
public QueryBuilderBase OrLessThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
public WhereBuilderBase OrLessThanOrEqual(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any)
|
||||||
=> Or(path, ConditionOperators.LessThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
=> Or(path, ConditionOperators.LessThanOrEqual, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region contains
|
#region contains
|
||||||
public QueryBuilderBase Contains(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase Contains(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.Contains, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.Contains, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase AndContains(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase AndContains(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.Contains, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.Contains, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase OrContains(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase OrContains(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> Or(path, ConditionOperators.Contains, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> Or(path, ConditionOperators.Contains, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region starts with
|
#region starts with
|
||||||
public QueryBuilderBase StartsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase StartsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.StartsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.StartsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase AndStartsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase AndStartsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.StartsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.StartsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase OrStartsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase OrStartsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> Or(path, ConditionOperators.StartsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> Or(path, ConditionOperators.StartsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ends with
|
#region ends with
|
||||||
public QueryBuilderBase EndsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase EndsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.EndsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.EndsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase AndEndsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase AndEndsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.EndsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.EndsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase OrEndsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase OrEndsWith(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> Or(path, ConditionOperators.EndsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> Or(path, ConditionOperators.EndsWith, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region In
|
#region In
|
||||||
public QueryBuilderBase In(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase In(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.In, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.In, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase AndIn(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase AndIn(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.In, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.In, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase OrIn(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase OrIn(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> Or(path, ConditionOperators.In, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> Or(path, ConditionOperators.In, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region NotIn
|
#region NotIn
|
||||||
public QueryBuilderBase NotIn(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase NotIn(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.NotIn, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.NotIn, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase AndNotIn(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase AndNotIn(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> And(path, ConditionOperators.NotIn, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> And(path, ConditionOperators.NotIn, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
|
|
||||||
public QueryBuilderBase OrNotIn(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
public WhereBuilderBase OrNotIn(string path, object value, QueryConvertStrategy convertStrategy = QueryConvertStrategy.ConvertConstantToComparedPropertyOrField, QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||||
=> Or(path, ConditionOperators.NotIn, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
=> Or(path, ConditionOperators.NotIn, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user