using Dapper; using GB5Shared.ListQuery; using GB5Shared.QueryExecutor; using MMDAL.DTO.SupplyGroup; using MMDAL.Query.SupplyGroup; namespace MMDAL.CustomCode.SupplyGroup { // ───────────────────────────────────────────────────────────────────── // SupplyGroupListHandler – Pattern A (single query variant) // // All boilerplate (dialect resolution, QueryPagedAsync, QueryStreamAsync) // lives in SqlListHandler (GB5Shared). // This subclass provides only BuildSql — one line delegating to the QB. // // Scrutor auto-registers this as IListHandler // via the non-abstract, non-interface class filter in MMSL/Program.cs. // ───────────────────────────────────────────────────────────────────── public sealed class SupplyGroupListHandler : SqlListHandler { public SupplyGroupListHandler(IQueryExecutor qe) : base(qe) { } protected override (string Sql, DynamicParameters Params) BuildSql( SupplyGroupListCriteria c, ISqlDialect d) => SupplyGroupQB.BuildSupplyGroupList(c, d); } }