title: Generic Repository pattern for .net core with Dapper
body: <p>I followed a tutorial on Generic Repository Pattern with ASP.NET core with EF CORE, 
   <a href="https://garywoodfine.com/generic-repository-pattern-net-core/" rel="noreferrer">here</a>
  for example </p>
  
  <pre><code>   public class Repository&lt;T&gt; : IRepository&lt;T&gt; where T : class
     {
      protected readonly DbContext _dbContext;
      protected readonly DbSet&lt;T&gt; _dbSet;
  
      public Repository(DbContext context)
      {
          _dbContext = context ?? throw new 
           ArgumentException(nameof(context));
          _dbSet = _dbContext.Set&lt;T&gt;();
      }
  
      public void Add(T entity)
      {
         _dbSet.Add(entity);
      }
     }
  </code></pre>
  
  <p>since this is using EF Core we can just use it pre defined methods for insert data through <code>Add</code> method, but when it comes to dapper it needs sql query, then how can i create this generic interface suitable for Dapper ?</p>