title: .NET: NpgsqlCommand to IQueryable
body: <p>Is there a way to create an IQueryable from an NpgsqlCommand?</p>
  
  <p>Something like this:</p>
  
  <pre><code>using (var connection = new NpgsqlConnection(_connectionString))
          {
              connection.Open();
  
              using (var cmd = new NpgsqlCommand("SELECT o.Id, o.Name FROM schema.blogs", connection))
  
              var blogsQueryable = cmd.Execute&lt;IQueryable&lt;BlogViewModel&gt;&gt;;
          }
  </code></pre>