title: Entity Framework generating Entity Data Model fails with error
body: <p>I added just two tables into my database, using as always <code>update-database</code> command. Everything went nice, without any errors. </p>
  
  <p>But now, when I try to generate Entity Data Model (<code>Entity Framework &gt; View Entity Data Model</code>), I get an window with an error:</p>
  
  <blockquote>
    <p>Exception has been thrown by the target of an invocation</p>
  </blockquote>
  
  <p>Why? How to repair it? Reinstall Entity Framework Power Tools is not helpful at all.</p>
  
  <p>Regards</p>
  
  <p>EDIT:</p>
  
  <p>Context:</p>
  
  <pre><code>    public DbSet&lt;Order&gt; Order { get; set; }
      public DbSet&lt;Product&gt; Product { get; set; }
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>[Table("Product")]
  public class Product
  {
      [Key]
      [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
      public int ProductId { get; set; }
  
      public string name { get; set; }
      public DateTime AddDate { get; set; }
      public bool del { get; set; }
  
      public virtual List&lt;Order&gt; OrderList { get; set; }
  }
  
  [Table("Order")]
  public class Order
  {
      [Key]
      [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
      public int OrderId { get; set; }
  
      public int ProductId { get; set; }
      public string desc { get; set; }
  
      public virtual Product product { get; set; }
  }
  </code></pre>
  
  <p>Without this code below, everything works nice - what is wrong?</p>