Posts tagged with Ado.net


We discovered that this code in one of our web services sporadically throws NullReferenceException: public class DataRepository : IDataRepository, IDisposable { private bool _disposed; private readonly IDbConnection _db; public DataRepository(IConfiguration configuration) { _configuration = configuration; _db = new SqlConnection(…