got rid of generic depedancy. :)
This commit is contained in:
@@ -14,10 +14,10 @@ namespace PoweredSoft.DynamicLinq
|
||||
QueryCollectionHandling collectionHandling = QueryCollectionHandling.Any, StringComparison? stringComparision = null)
|
||||
=> list.AsQueryable().Where(path, conditionOperator, value, convertStrategy: convertStrategy, collectionHandling: collectionHandling, stringComparision: stringComparision);
|
||||
|
||||
public static IEnumerable<T> Where<T>(this IEnumerable<T> list, Action<WhereBuilder<T>> callback)
|
||||
public static IEnumerable<T> Where<T>(this IEnumerable<T> list, Action<WhereBuilder> callback)
|
||||
=> list.Query(callback);
|
||||
|
||||
public static IEnumerable<T> Query<T>(this IEnumerable<T> list, Action<WhereBuilder<T>> callback)
|
||||
public static IEnumerable<T> Query<T>(this IEnumerable<T> list, Action<WhereBuilder> callback)
|
||||
=> list.AsQueryable().Query(callback);
|
||||
|
||||
public static IEnumerable<T> Sort<T>(this IEnumerable<T> list, string path, QueryOrderByDirection sortDirection, bool appendSort)
|
||||
|
||||
@@ -19,15 +19,15 @@ namespace PoweredSoft.DynamicLinq
|
||||
return query;
|
||||
}
|
||||
|
||||
public static IQueryable<T> Where<T>(this IQueryable<T> query, Action<WhereBuilder<T>> callback)
|
||||
public static IQueryable<T> Where<T>(this IQueryable<T> query, Action<WhereBuilder> callback)
|
||||
=> query.Query(callback);
|
||||
|
||||
public static IQueryable<T> Query<T> (this IQueryable<T> query, Action<WhereBuilder<T>> callback)
|
||||
public static IQueryable<T> Query<T> (this IQueryable<T> query, Action<WhereBuilder> callback)
|
||||
{
|
||||
var queryBuilder = new WhereBuilder<T>(query);
|
||||
var queryBuilder = new WhereBuilder(query);
|
||||
callback(queryBuilder);
|
||||
var ret = queryBuilder.Build();
|
||||
return ret;
|
||||
return (IQueryable<T>)ret;
|
||||
}
|
||||
|
||||
// generic.
|
||||
|
||||
Reference in New Issue
Block a user