title: Generic method with sqlite-net
body: <p>I want to make a simple repository and underneath there is the method I have used: </p>
  
  <pre><code>public static List&lt;T&gt; GetAll()
  {
      return _dbConnection.Table&lt;T&gt;().ToList();
  }
  </code></pre>
  
  <p>But I am encountering an error:
  <code>'T' must be a non-abstract type with a public parameterless constructor in order to use it as parameter 'T' in the generic type or method 'SQLite.SQLiteConnection.Table&lt;T&gt;()'</code></p>
  
  <p>I use <code>SQLite</code> wrapper <code>sqlite-net</code>.</p>
  
  <p>Ofc my class is generic:</p>
  
  <pre><code>class FeedRepository&lt;T&gt; : IFeedRepository&lt;T&gt;, IDisposable where T : IFeed
  </code></pre>