Path: redb-route/redb.Route.Core/Query/IRedbQuerySpec.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Core/Query/IRedbQuerySpec.cs
----
using redb.Core.Query;
namespace redb.Route.RedbCore.Query;
///
/// The full-LINQ escape hatch of RedbQuery/<redbQuery>: a named
/// specification the route references by its registry name (filter="#activeOrders")
/// when the condition string cannot say what the query needs — joins of conditions the
/// translator refuses, provider-specific operators, reusable business filters. Register the
/// instance in the context registry (a <bean> does it from markup).
///
/// The props type the specification filters.
public interface IRedbQuerySpec where TProps : class, new()
{
/// Applies the specification to the query and returns the narrowed query.
IRedbQueryable Apply(IRedbQueryable query);
}