This is not an official Dapper project!
A simple light weight Repository wrapper around Dapper & Dapper.Contrib.
Within a C# .NET 5 Web Applications Startup.cs or the project that contains the Domain models:
public void ConfigureServices(IServiceCollection services)
{
//...
services.AddRepository("[Insert your connection string here]");
//...
}- Ensure all your domain entities inherit
Entity - Inject
IRepositorywhere necessary - ???
- Profit