Chapter 6: Working with the Data Access Infrastructure
Almost all business applications use a kind of database system. We typically implement data access logic to read data from and write data to a database. We also need to deal with database transactions to ensure consistency in the data source.
In this chapter, we will learn how to work with the data access infrastructure of ABP Framework, which provides abstractions for data access by implementing Repository and Unit of Work (UoW) patterns. Repositories provide a standard way to perform common database operations for your entities. The UoW system automates database connections and transaction management to ensure a use case (typically, a HyperText Transfer Protocol (HTTP) request) is atomic; this means all operations done in the request are successful together or rolled back together in any error.
You will see how to define your entities based on ABP Framework's pre-built base entity classes. Then, you will learn how...