title: Inheritance and Dapper.net
body: <p>I decided to use Dapper.net because it seems to be doing only what I want : mapping, I don't need anything fancy , I'm just bored to handle the mapping between my datareader and my object.</p>
  
  <p>My problem :</p>
  
  <p>Let's say I have these class :</p>
  
  <pre><code>class Foo{
  int ID;
  string Name;
  }
  class Bar : Foo{
  string FavoriteMoovie;
  }
  </code></pre>
  
  <p>And these tables :</p>
  
  <pre><code>Foo 
  - ID
  - Name
  
  Bar
  - FooID
  - FavoriteMoovie
  </code></pre>
  
  <p>So I'd like to know how I can select my Foo and Bars in the same query ?</p>
  
  <p>My only idea so far is</p>
  
  <ul>
  <li>SELECT all the Foos that are not Bars</li>
  <li>then SELECT all the Bars</li>
  </ul>
  
  <p>I can't use the overload of the method "Query" because there are just here for mapping relationships.</p>