Azure Cosmos DB — SQL Injection Attack and Defense using Partitioned Repository Pattern
Does SQL Injection apply to Azure Cosmos DB even though it is NoSQL? YES! Can you prevent it? YES! See SQL Injection prevention using Parameterized Query and LINQ with Partitioned Repository Pattern.
UPDATE April 10, 2022: all projects in the GitHub repo have been upgraded to .NET 5.