protected DatabaseContext(IConnectionFactory <TSettings> factory) { TransactionContext = new TransactionContext(); Connection = Connection ?? factory.CreateFromSettings(); }