title: Add model to table using generics
body: <p>I'm trying to make a base class for crud ops but can't quite figure out how to get this part wired up or if it's possible.  I'm using an EDMX w/ generated dbcontexts and pocos, so, ideally, I'd like to create a base class from where I can derive all my crud methods.</p>
  
  <p>Interface:</p>
  
  <pre><code>public interface IGenericCrud&lt;T&gt; where T : class
  {
      void Add(T entity);
  }
  </code></pre>
  
  <p>Implementation:</p>
  
  <pre><code>public abstract class MyImplementation : IGenericCrud&lt;KnownModel&gt;
  {
      protected myEntities context;
  
      public MyImplementation()
      {
          context = new myEntities();
      }
  
      void Add(KnownModel entity)
      {
          // This doesn't work, but it's what I'd like to accomplish
          // I'd like to know if this possible without using ObjectContexts
          context.KnownModel(add entity);
      }
  }
  </code></pre>