Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/contributing/code-style/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,14 @@ END

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

:::warning Do not use `And` between parameter names in procedure names

Some procedures in the codebase use `And` between parameter names. These are incorrect and should
not be used as a reference. Always concatenate parameter names directly, e.g.
`EntityName_ReadManyByOrganizationIdRole`.

:::

```sql
CREATE PROCEDURE [dbo].[EntityName_ReadManyByOrganizationIdRole]
@OrganizationId UNIQUEIDENTIFIER,
Expand Down
Loading