Dapper and Repository Pattern in Web API

This article will demonstrate about how to get data using Dapper and Repository Pattern in Web API and how to use Dependency Injection using Unit of Work in Web API. I will show you how to implement Generic Repository with Custom Repository for CRUD operations.

C# (35.7 MB)
3 Star
10,363 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
  • Doesn't get executed for blogs controller
    1 Posts | Last post August 12, 2019
    • the source doesn't run, i didn't make any change and tried the BlogsController--> GetAllBlogPostsByPageIndex (Get method)
       to consume from POSTMAN but it threw the exception.
      Exception is: Object reference --> as the _blogService is null it threw the exception. Kindly clarify
  • Could not able to browse the code
    1 Posts | Last post March 14, 2018
    • Hi Mukesh,
      Can I request the code for this post. Firstly thanks for the approach you have given here. But I need to end to end implementation of this approach.
      Thanks in advance.
  • genericrepository implementation
    1 Posts | Last post November 23, 2017
    • how is it implemented with dapper?