A set of opinionated Query abstractions and accompanying Convention Tests to make sure your Dapper queries measure up


Keywords
c-sharp, dapper, testing
Install
Install-Package Tailor.Test -Version 2.0.5

Documentation

Tailor Build status NuGet

A set of opinionated Query abstractions and accompanying Convention Tests to make sure your Dapper queries measure up!

Tailor targets .NET Standard 2.0

To install from NuGet

Install-Package Tailor

And then in your test project...

Install-Package Tailor.Test

What is it?

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

Why?

It isn't compile-time safety, but test-time safety is the next best thing. Ensures queries are resiliant to refactoring and schema changes.

Examples

Check out the Samples to get started

License

Licensed under the terms of the MS-PL license