Quotes an identifier for use in a tenant predicate via the active provider's
QuoteIdentifier (DatabaseProviderBase always exposes one server-side, yielding [x]
on SQL Server and "x" on PostgreSQL). Throws — never falls back to hardcoded T-SQL
bracket quoting — when no provider is available: a silent fallback would emit
invalid SQL on PostgreSQL, and "fails to build a query" is a worse failure mode to
debug than "refused to build one." A tenant filter must fail closed, loudly, at the
point where it can no longer guarantee platform-correct SQL. Exported for tests.
Quotes an identifier for use in a tenant predicate via the active provider's QuoteIdentifier (DatabaseProviderBase always exposes one server-side, yielding [x] on SQL Server and "x" on PostgreSQL). Throws — never falls back to hardcoded T-SQL bracket quoting — when no provider is available: a silent fallback would emit invalid SQL on PostgreSQL, and "fails to build a query" is a worse failure mode to debug than "refused to build one." A tenant filter must fail closed, loudly, at the point where it can no longer guarantee platform-correct SQL. Exported for tests.