1
I have 2 methods from a generic repository
public TEntity ObterPorId(int id)
{
return Db.Set<TEntity>().Find();
}
public IEnumerable<TEntity> ObterTodos()
{
return Db.Set<TEntity>().ToList();
}
but I want to use Dapper, to get a little more performance, because the method ObterTodos
Entity is taking too long to bring the data.
How can I do this using Dapper?
Maybe the link will help you follow a path... http://www.bradoncode.com/blog/2012/12/creating-data-repository-using-dapper.html
– user43245