AUA Framework Training — Episode 9

Service Actions & Built-in Functions

Comprehensive Guide to Insert, Delete, Update, and Partial Operations in AUA Services

Watch Video on YouTube

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:

1. Asynchronous
2. Synchronous
3. Async with Cancellation Token

Built-in Repository Actions Reference

Insert Actions

Insert(dto) / Insert(entity)

Insert a DTO or Entity synchronously.

InsertAsync(dto) / InsertAsync(entity)

Insert a DTO or Entity asynchronously.

InsertCustomVm(customVm)

Insert a ViewModel with sync fields inserted in table.

InsertCustomVmAsync(customVm)

Insert a ViewModel with sync fields inserted asynchronously.

PartialInsert(dto / entity)

Save entity in DbContext without table insertion; batch save via SaveChanges.

InsertMany / InsertManyAsync

Insert multiple entities/DTOs simultaneously (sync or async).

Delete & TryDelete Actions

Delete(id / dto / entity)

Delete an entity by Id, DTO, or entity object (sync & async variants).

TryDelete(id / dto / entity)

Attempts deletion, returning true if successful, otherwise false (sync & async variants).

Update Actions

Update(dto)

Update an existing entity record using the provided DTO data.

“
”
"If you think good architecture is expensive, try bad architecture."
AUA Framework Philosophy

Official Channels & Community

Connect with the AUA Framework ecosystem.