Skip to content

Refactor Domain and Infrastrucuture#1454

Open
Ayush2395 wants to merge 1 commit intojasontaylordev:mainfrom
Ayush2395:ayush/refactor
Open

Refactor Domain and Infrastrucuture#1454
Ayush2395 wants to merge 1 commit intojasontaylordev:mainfrom
Ayush2395:ayush/refactor

Conversation

@Ayush2395
Copy link
Copy Markdown

  • Moved ApplicationUser from Infrastructure to Domain and renamed it to User.
  • Refactored BaseAuditableEntity by introducing IDateAuditable and IUserAuditable to separate concerns and support updates in AuditableEntityInterceptor.
  • Added ApplicationRole and UserRole entities to enable proper mapping to UserDto.
  • Refactored ApplicationDbContextInitializer and Program.cs for better Development environment configuration.
  • Added GetUserByIdAsync method to IdentityService.
  • Introduced IHasDomainEvents and implemented it in the User entity; also inherited it in BaseEntity to support domain event handling for aggregate roots.

…t to `User`.

- Refactored `BaseAuditableEntity` by introducing `IDateAuditable` and `IUserAuditable` to separate concerns and support updates in `AuditableEntityInterceptor`.
- Added `ApplicationRole` and `UserRole` entities to enable proper mapping to `UserDto`.
- Refactored `ApplicationDbContextInitializer` and `Program.cs` for better Development environment configuration.
- Added `GetUserByIdAsync` method to `IdentityService`.
- Introduced `IHasDomainEvents` and implemented it in the `User` entity; also inherited it in `BaseEntity` to support domain event handling for aggregate roots.
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