Install QueryLens
Install QueryLens into your test project with NuGet, then validate one tiny statement to prove the package is wired correctly.
Install
dotnet add package QueryLens
Typical Imports
using QueryLens;
using QueryLens.Enums;
using QueryLens.Statements;
Smallest Proof
var query = new SqlQuery("SELECT 1");
Assert.True(query.IsValid);
Common Install Problems
- Package added to the runtime project instead of the test project
- Missing
using QueryLens.Statements;when constructing wrappers - Runtime configured after another test already triggered validation