adding extension method straight on where.

This commit is contained in:
David Lebée
2018-03-07 20:16:15 -06:00
parent 74a68c70c1
commit fce55178bb
4 changed files with 19 additions and 2 deletions
@@ -30,5 +30,11 @@ namespace PoweredSoft.DynamicLinq.EntityFramework
query = query.Query(callback);
return query;
}
public static IQueryable Where(this DbContext context, Type pocoType, Action<QueryBuilderBase> callback)
=> context.Query(pocoType, callback);
public static IQueryable<T> Where<T>(this DbContext context, Action<QueryBuilderBase> callback)
where T : class => context.Query<T>(callback);
}
}