title: Entity Framework Code First Lazy Loading without Include("A") method
body: <p>I have a class:</p>
  
  <pre><code>class Client
  {
    public string Name {get;set;}
  
    public virtual A{get;set;}
  
    public virtual B{get;set;}
  }
  </code></pre>
  
  <p>I'm filling <code>A</code> and <code>B</code> properties like that:</p>
  
  <pre><code>public Client GetById(Guid id)
  {
      using (DataContext context = new DataContext())
      {
          context.Configuration.LazyLoadingEnabled = true;
          var query = context.Clients.Include("A");
          query = query.Include("B");
          return query.FirstOrDefault(r =&gt; r.Id == id);
      }
  }
  </code></pre>
  
  <p>Context inherited from <code>System.Data.Entity.DbContext</code></p>
  
  <p>If I'll rename <code>A</code> or <code>B</code> I'll have to change this <code>Include("A")</code> manually. No good...</p>
  
  <p>Please let me know if there is another convenient way how to fill this properties? </p>
  
  <p>Thanks in advance.</p>