Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase DX of entity events #889

Open
MaxSchaefer opened this issue Nov 17, 2024 · 0 comments
Open

Increase DX of entity events #889

MaxSchaefer opened this issue Nov 17, 2024 · 0 comments
Labels

Comments

@MaxSchaefer
Copy link
Member

MaxSchaefer commented Nov 17, 2024

A cleaner way is to

  • create a new EntityAggregateBase type, which embeds AggregateBase
  • EntityAggregateBase then implements a custom Save() method, which does the same as SaveEntityEventForAggregate
  • TaskTemplateAggregate, BedAggregate etc embed EntityAggregateBase instead of AggregateBase
  • handler call NewTaskTemplateAggregate(templateID).Save(...)

#884 (comment)

@MaxSchaefer MaxSchaefer added the DX label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant