title: entity framework load only parent entity
body: <p>I need to load an entity from <strong>Entity Framework(EF)</strong> but I only need the entity itself, I don't need any childs. I'm having troubles sending an object trought sockets because of the weight of the object.<strong>(Any suggestion about this?)</strong></p>
  
  <p><strong>I'm using this code to get the list of objects I need:</strong></p>
  
  <pre><code>…
  private static DBEntities context = new DBEntities();
  listaPlatos = context.PLATO.ToList();
  …
  </code></pre>
  
  <p>My problem is that each object "PLATO" has others objects as childs. I want to ignore that childs and get only the "PLATO" entity.</p>
  
  <p>Thanks.</p>