Service Actions & Built-in Functions
Comprehensive Guide to Insert, Delete, Update, and Partial Operations in AUA Services
Entity Service Execution Forms
All business logic in AUA is handled via services containing built-in repositories. Developers bypass tedious repository-service wiring to focus strictly on business implementations. Furthermore, entity service functions are natively available across three execution formats:
Built-in Repository Actions Reference
Insert Actions
Insert a DTO or Entity synchronously.
Insert a DTO or Entity asynchronously.
Insert a ViewModel with sync fields inserted in table.
Insert a ViewModel with sync fields inserted asynchronously.
Save entity in DbContext without table insertion; batch save via SaveChanges.
Insert multiple entities/DTOs simultaneously (sync or async).
Delete & TryDelete Actions
Delete an entity by Id, DTO, or entity object (sync & async variants).
Attempts deletion, returning true if successful, otherwise false (sync & async variants).
Update Actions
Update an existing entity record using the provided DTO data.
"If you think good architecture is expensive, try bad architecture."AUA Framework Philosophy