Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 703 Bytes

Readme.md

File metadata and controls

19 lines (16 loc) · 703 Bytes

ReliableSql - implementation of retry logic for SqlConnection and SqlCommand for handling transient errors.

It works especially good with Dapper

Example usage:

Create an instance of ReliableSqlConnection:

var db = new ConnectionManager(connectionString);
var dbConnection = db.CreateConnection();

Select data with Dapper:

var db = new ConnectionManager(connectionString);
var users = default(List<User>);
db.Execute(cnn => users = cnn.Query<User>("SELECT * FROM Users").ToList());