Skip to content

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

Notifications You must be signed in to change notification settings

andrewabest/Tailor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages