TheNephalim / QueryHelper

The anti-orm database query tool. You give it SQL, it handles everything else.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QueryHelper

This project was moved from CSharpQueryHelper. It's now a library & nuget package. I renamed it to be more language agnostic.

Nuget page: https://www.nuget.org/packages/QueryHelper/

QueryHelper is a small lightweight library that utilizes functional constructs to help you run queries. It manages all your sql connections, commands, parameters, and transactions.

All you do is supply:

  1. a connection string.
  2. some SQL.

And the QueryHelper manages the connection, command, reader, and transaction.

It's fully mockable so unit testing is a breeze (especially compared with mocking a DbCommand!)

Sample code including unit tests: https://github.com/ctigeek/QueryHelper/tree/master/Example

About

The anti-orm database query tool. You give it SQL, it handles everything else.

License:Apache License 2.0


Languages

Language:C# 99.8%Language:PowerShell 0.2%