Skip to content

Implementation of retry logic for SqlConnection and SqlCommand (mostly for Azure Sql)

Notifications You must be signed in to change notification settings

glebteterin/reliable-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

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());

About

Implementation of retry logic for SqlConnection and SqlCommand (mostly for Azure Sql)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published