title: query a list of dynamic objects
body: <p>I am using <a href="https://github.com/robconery/massive" rel="nofollow">massive</a> to get the config table in the database. I would like to cache the config since the app gets values from it all the time. </p>
  
  <p>once cached is there an easy way to find the object where name = 'something'</p>
  
  <p>here is where the whole table is cached. </p>
  
  <pre><code>    protected override dynamic Get()
      { 
          var ret = HttpRuntime.Cache["Config"]; 
          if (ret == null)
          { 
              ret = _table.All(); 
              HttpRuntime.Cache.Add("Config", ret, null, DateTime.Now.AddMinutes(2), Cache.NoSlidingExpiration,CacheItemPriority.Low, null );
          }
          return ret; 
      } 
  </code></pre>
  
  <p>here is where I would like to pull one record from that method </p>
  
  <pre><code>    protected override dynamic Get(string name)
      {
          return this.Get().Where(x =&gt; x.Name == name ).SingleOrDefault(); 
      }
  </code></pre>
  
  <p>I know linq or lambda statements are not allowed in dynamic objects. but what is the <em>next best</em> way to pull that one object out of that list?</p>