Database Repository Pattern

I’m implementing the repository pattern in one of my projects so that I’m not repeating database access code all over the place. I just wanted to check, am I safe to use the following code:

var logger = Logger.CreateWithDefaultLog4NetConfiguration();
var db = new UmbracoDatabase("umbracoDbDSN", logger);

This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/72323-database-repository-pattern