title: asp.net c# Automap a class from within that class
body: <p>To best describe what I want to happen, i'll show what i'm doing, as to me it makes sense that this would work ...</p>
  
  <pre><code>public class foo()
  {
      public foo()
      {
          MyContext db = new MyContext();
          foobar = db.foobar.first();
          this = Mapper.Map&lt;bar, foo&gt;(foobar);
      }
  }
  </code></pre>
  
  <p>Basically, I want to use automapper within the destination class to map from the source class within the destination classes constructor.</p>
  
  <p>Is there a way to do this?</p>