title: Entity Framework - Fill remaining properties
body: <p>I have a method that receives a Dto Model and map to a Domain Model:</p>
  
  <p>Method:</p>
  
  <pre><code>public void CreateAd(CreateAdDto adDto) { 
  
      var adDomain = Mapper.Map&lt;CreateAdDto, Ad&gt;(adDto);
  }
  </code></pre>
  
  <p>Dto Object:</p>
  
  <pre><code>public class CreateAdDto
  {
      public int Model_Id { get; set; }
  }
  </code></pre>
  
  <p>The Dto map the Domain Model:</p>
  
  <pre><code>public class Ad
  {
      public int Id { get; set; }
      public Model Model { get; set; }
  }
  </code></pre>
  
  <p>And the Model:</p>
  
  <pre><code>public class Model
  {
      // Primary properties
      public int Id { get; set; }
      public string Name { get; set; }
      public string NameStandard { get; set; }
  }
  </code></pre>
  
  <p>I need to get in the CreateAd method access to the Model.NameStandard value, but when I do the mapping, I only have the Model Id, so how do I get the Model Entity with all the properties including the NameStandard value?</p>
  
  <p>Do I have to make a Call to the <strong>Model GetById(Model_Id)</strong> to get the Model properties or there is another way like a property in the Attach that can bring all the properties?</p>
  
  <p>Or Should I use the Model in the ViewModel and pass to the Dto and to the Domain with all the properties?</p>
  
  <p>Thanks.</p>