Exemplo n.º 1
0
        public PgsqlConnection GetNewConnection()
        {
            Logger.Info("Getting a new database connection.");
            PgsqlConnection conn = new PgsqlConnection(new NpgsqlConnection(_connectionString));

            conn.Open();
            return(conn);
        }
Exemplo n.º 2
0
 public BlogRepository(PgsqlConnection dbConnection)
 {
     _dbConnection = dbConnection;
 }