Skip to content

Commit fad7d83

Browse files
Style - Sql - Stored Procs with multiple params - naming convention update (#788)
* Style - Sql - Stored Proc naming convention update - per discussion with architecture, don't use "and" between multiple params * Adjust per feedback
1 parent 07fe128 commit fad7d83

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • docs/contributing/code-style

docs/contributing/code-style/sql.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,14 @@ END
343343

344344
**Read many with filter** -- multiple `AND` conditions with an inline status code comment:
345345

346+
:::warning Do not use `And` between parameter names in procedure names
347+
348+
Some procedures in the codebase use `And` between parameter names. These are incorrect and should
349+
not be used as a reference. Always concatenate parameter names directly, e.g.
350+
`EntityName_ReadManyByOrganizationIdRole`.
351+
352+
:::
353+
346354
```sql
347355
CREATE PROCEDURE [dbo].[EntityName_ReadManyByOrganizationIdRole]
348356
@OrganizationId UNIQUEIDENTIFIER,

0 commit comments

Comments
 (0)