title: Dapper ORM Nested Objects
body: <p>I have a customer who has dictated that I use Dapper ORM, which I've never used before. I have a problem with nested objects. I have a main class (Location) which has an embedded value object class (Address). The two classes look like this:</p>
  
  <pre><code>class Location {
      int Id;
      string LocationName;
      Address LocationAddress;
  }
  
  Class Address {
      string Street;
      string City;
      string State;
      string ZipCode;
  }
  </code></pre>
  
  <p>The SQL:</p>
  
  <pre><code>SELECT Id, LocationName, Street, City, State, ZipCode FROM Locations
  </code></pre>
  
  <p>I've look at a number of examples but I just can’t get the query set up right. I just don't understand Dapper enough to get the structure right.</p>