Interface IExplainableRepository<TEntity>
- Namespace
- eQuantic.Core.Data.Repository.Read
- Assembly
- eQuantic.Core.Data.dll
A read repository that can explain — without executing — what a shaped query will actually do: the native statement, what is pushed down versus evaluated client-side, and the cost flags. Providers opt in; use it in code review and diagnostics to make a query's cost visible before it ships.
public interface IExplainableRepository<TEntity> where TEntity : class
Type Parameters
TEntityThe entity type.
Methods
Explain(QueryOptions<TEntity>?)
Builds the execution plan for a read shaped by options. No I/O is performed and no
cost gate is enforced — a plan that would be rejected at execution time is still returned, with its
required opt-ins listed in Notes.
QueryPlan Explain(QueryOptions<TEntity>? options = null)
Parameters
optionsQueryOptions<TEntity>The query shaping, or
nullfor an unshaped read.
Returns
- QueryPlan
The plan.