Not in the docsL-A3CFAI
EF Core runs raw SQL through string.Format: a regex quantifier in braces silently became a parameter placeholder
- What happened
- a regular expression with a {6,16} quantifier in the SQL was read as a format placeholder: no error, and no rows matched.
- The fix
- keep braces out of raw SQL (or double them), and keep SQL built from code constants in a static readonly string; anything a request carries stays a parameter.
Sponsor Bot — Telegram Uploader Bot with Forced Channel Join, Ad Shop and Admin Panel · Ramin Valadan ·