Book Image

Mastering ABP Framework

By : Halil İbrahim Kalkan
Book Image

Mastering ABP Framework

By: Halil İbrahim Kalkan

Overview of this book

ABP Framework is a complete infrastructure for creating modern web applications by following software development best practices and conventions. With ABP's high-level framework and ecosystem, you can implement the Don’t Repeat Yourself (DRY) principle and focus on your business code. Written by the creator of ABP Framework, this book will help you to gain a complete understanding of the framework and modern web application development techniques. With step-by-step explanations of essential concepts and practical examples, you'll understand the requirements of a modern web solution and how ABP Framework makes it enjoyable to develop your own solutions. You'll discover the common requirements of enterprise web application development and explore the infrastructure provided by ABP. Throughout the book, you’ll get to grips with software development best practices for building maintainable and modular web solutions. By the end of this book, you'll be able to create a complete web solution that is easy to develop, maintain, and test.
Table of Contents (24 chapters)
1
Part 1: Introduction
6
Part 2: Fundamentals of ABP Framework
11
Part 3: Implementing Domain–Driven Design
15
Part 4: User Interface and API Development
19
Part 5: Miscellaneous

Understanding the UoW system

UoW is the main system that ABP uses to initiate, manage, and dispose of database connections and transactions. The UoW system is designed with the Ambient Context pattern. That means when we create a new UoW, it creates a scoped context that is participated by all the database operations performed in the current scope by sharing the same context and is considered a single transaction boundary. All the operations done in a UoW are committed (on success) or rolled back (on exception) together.

While you can manually create UoW scopes and control the transaction properties, most of the time, it works seamlessly just as you desire. However, it provides some options if you change the default behavior.

UoW and Database Operations

All database operations must be performed in a UoW scope since UoW is the way to manage database connections and transactions in ABP Framework. Otherwise, you get an exception indicating that.

In the next sections, you will...