Skip to content

Conversation

Ayush2395
Copy link

  • Added 2 interfaces IDomainEvent and IAuditableEntity in the Domain, I've putted this in common folder.
  • Change the Event from class to record.
  • In infrastructure class library, I've changed the interceptors with IDomainEvent and IAuditableEntity.
  • Added the IAuditableEntity and IDomainEvent in the ApplicationUser entity.
  • These changes helps to solve the complexity of project when it is scalling, that's I've experienced.
  • Move the ApplicationUser entity from Infrastructure to Domain.

- Added 2 interfaces IDomainEvent and IAuditableEntity in the Domain, I've putted this in common folder.
- Change the Event from class to record.
- In infrastructure class library, I've changed the interceptors with IDomainEvent and IAuditableEntity.
- Added the IAuditableEntity and IDomainEvent in the ApplicationUser entity.
- These changes helps to solve the complexity of project when it is scalling, that's I've experienced.
@jasontaylordev
Copy link
Owner

jasontaylordev commented Jul 25, 2025

Thanks for the contribution @Ayush2395 - there are some great changes here! Could you please update your branch with the latest main and resolve the conflicts so we can review it properly?

One note: I generally prefer not to make all entities auditable, so I’d rather have BaseAuditableEntity inherit from BaseEntity, not the other way around. Also, we can probably rename ApplicationUser to User.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants