title: How to create an Entity Data Model for inherited generic types?
body: <p>I have no clue how i can get an existing object structure based on the following classes (simplified) into a database using Entity Framework (EF is a constraint, i have to use it).</p>
  
  <pre><code>public abstract class WahWahProperty
  {
    public string Name { get; set; }
    public abstract Type PropertyType { get; }
  }
  
  // ----------------
  
  public class WahWahProperty&lt;T&gt; : WahWahProperty
  {
    public T Value { get; set; }
  
    public override Type PropertyType
    {
      get { return typeof(T); }
    }
  }
  
  // ----------------
  
  public class WahWahContainer
  {
    public List&lt;WahWahContainer&gt; Children { get {...}; }
    public List&lt;WahWahContainer&gt; Parents { get {...}; } // multiple "Parents" allowed
    public List&lt;WahWahProperty&gt; Properties { get {...}; }
    //... some more props here ...
  }
  </code></pre>
  
  <p>Any ideas?</p>