What problem does it solve?
BeepDM's UnitOfWork pattern provides a unified approach to data operations, reducing boilerplate by encapsulating CRUD, change tracking, and transactional consistency behind a single, reusable API.
Core Features & Use Cases
- Change tracking for inserts, updates, and deletes across data sources.
- Automatic transaction handling with commit/rollback support.
- Integrated DefaultsManager support for automatic default value assignment.
- Datasource-agnostic operation and event hooks to customize lifecycle.
- Use cases include service-layer patterns, repository-like abstractions, and cross-entity workflows in BeepDM.
Quick Start
Initialize a UnitOfWork for a specific entity set, configure the editor and data source, perform create/read/update/delete operations, and call Commit to persist changes. The Skill provides example patterns for integrating UnitOfWork<T> with a BeepDM editor and entity types.