A set of opinionated Query abstractions and accompanying Convention Tests to make sure your Dapper queries measure up!
Tailor targets .NET Standard 2.0
Install-Package Tailor
And then in your test project...
Install-Package Tailor.Test
A set of strongly typed query abstractions to encapsulate Dapper queries and their parameters, that also allow us to enforce the following Conventions via Conventional
- Queries must execute
- Query parameters must match SQL parameters
- Queries must not perform select-star
- Query parameters must have either a public default constructor, or one protected default constructor with public non-default constructors
It isn't compile-time safety, but test-time safety is the next best thing. Ensures queries are resiliant to refactoring and schema changes.
Check out the Samples to get started
Licensed under the terms of the MS-PL license