title: Lazy loading not working in EF4 (Relations are always NULL)
body: <p>I know that this question is probably very basic. Therefore, I've been checking all the circunstances sorrounding the project.</p>
  
  <p>I'm using a bunch of POCO entities, reading from a database. When creating the context I'm enabling Proxies and LazyLoading:</p>
  
  <pre><code>this.ContextOptions.LazyLoadingEnabled = true;
  this.ContextOptions.ProxyCreationEnabled = true;
  
  _entities1 = CreateObjectSet&lt;Entities1&gt;();
  _entities2 = CreateObjectSet&lt;Entities2&gt;();
  </code></pre>
  
  <p>I've marked the properties I would like to load automatically as virtual, as read on docs:</p>
  
  <pre><code>public virtual List&lt;Entity1&gt; GetEntities { get; set; }
  </code></pre>
  
  <p>However the property is always NULL. When executing code like:</p>
  
  <pre><code>foreach (var forEntity in colection)
  {
      object x = forEntity.Entities1;
  }
  </code></pre>
  
  <p>I can see how 'forEntity' is a generated proxy, but all the properties that should be lazy loaded are NULL.</p>
  
  <p>Thanks a lot! :)</p>