Decides whether the given entity + sproc combination should use a single
JSON-arg shape (vs. the default typed-arg + _Clear companion shape).
Returns true when the projected parameter count meets or exceeds the
supplied limit — meaning a typed-arg sproc would either bust a hard
platform constraint (PostgreSQL's FUNC_MAX_ARGS of 100) or get
uncomfortably close to one.
Pure function: takes the param limit as a number rather than a provider
instance so it's trivially callable from CodeGen (which doesn't always
have a live provider) and trivially unit-testable.
Same predicate is invoked by GenericDatabaseProvider.UseJsonArgShape()
at runtime and by CodeGen at generation time, guaranteeing the two stay
in lockstep.
Decides whether the given entity + sproc combination should use a single JSON-arg shape (vs. the default typed-arg +
_Clearcompanion shape).Returns true when the projected parameter count meets or exceeds the supplied limit — meaning a typed-arg sproc would either bust a hard platform constraint (PostgreSQL's
FUNC_MAX_ARGSof 100) or get uncomfortably close to one.Pure function: takes the param limit as a number rather than a provider instance so it's trivially callable from CodeGen (which doesn't always have a live provider) and trivially unit-testable.
Same predicate is invoked by
GenericDatabaseProvider.UseJsonArgShape()at runtime and by CodeGen at generation time, guaranteeing the two stay in lockstep.