December 2019
Intermediate to advanced
510 pages
11h 33m
English
In Implementing the data access layer using EF Core section, we used two different interfaces to get the jobs done: IItemRepository, which contains all the CRUD operations, and IUnitOfWork, which covers the unit of work pattern. For each CRUD operation, we need to call the IUnitOfWork interface to save our changes in the database. On the other hand, the application of Dapper as a micro-ORM doesn't need to provide a unit of work interface because ORM executes queries directly on the database using the stored procedures. For that reason, we don't need to implement the IRepository interface anymore and, consequently, we will not implement the IUnitOfWork interface either.
So, as a first step, we should ...
Read now
Unlock full access