Skip to main content

A Roslyn-based analyzer for SQL related stuff in .NET. This is a fork of SqlAnalyzer.Net that adds some Dapper improvements.

Total Downloads
1.0K
1,046
Published
Jul 16, 2026
4mo ago

Get Started

dotnet add package SqlAnalyzer.Net.Improved --version 1.3.5
ProductVersions
.NET Standard
netstandard2.0

README

SQL Analyzer Improved

An improved version of SqlAnalyzer.Net that adds:

  • Support for Dapper's CommandDefinition
  • Support for interpolated strings
  • Fixes to the SQL parsing logic

Analyzers

Rule\Library Dapper ADO.NET Entity Framework
SQL001: SQL type is not specified :heavy_check_mark:
SQL002: SQL parameters mismatch :heavy_check_mark: :heavy_check_mark:
SQL003: Using 'Query' method is not optimal here :heavy_check_mark:
SQL004: Using 'QueryMultiple' method is not optimal here :heavy_check_mark:
SQL005: Using 'SaveChanges' method in a loop can affect performance :heavy_check_mark:

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.