Commit b6709a3
committed
feat(application) : refactor DTOs and Validators for Improved Modularity
- Restructure Data Transfer Objects (DTOs) into specific namespaces: `CoreXCrud.DTOs.OrderDetailDtos`, `CoreXCrud.DTOs.OrderDtos`, `CoreXCrud.DTOs.ProductDtos`, and `CoreXCrud.DTOs.UserDtos` for better clarity and maintainability.
- Update the `MappingProfile` class to include new DTO namespaces and ensure correct mappings between models and DTOs.
- Revise validators (`OrderDetailValidator`, `OrderValidator`, `ProductValidator`, and `UserValidator`) to reference the new namespaces.
- Modify `Program.cs` to incorporate the updated mappings and validators.
- Add migration files (`20250610234634_CreateEntities.cs` and `20250610234634_CreateEntities.Designer.cs`) to set up the database schema for new entities.
- Update `appsettings.json` to change the database connection string, reflecting a potential change in the database server.
- These changes enhance the organization and modularity of the codebase, making it easier to manage and extend.
<-- This commit message was generated with GitHub Copilot in Visual Studio. -->1 parent 6ee522e commit b6709a3
File tree
17 files changed
+252
-20
lines changed- Controllers
- DTOs
- OrderDetailDtos
- OrderDtos
- ProductDtos
- UserDtos
- Mappings
- Migrations
- Validators
- OrderDetailValidators
- OrderValidators
- ProductValidators
- UserValidators
17 files changed
+252
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | | - | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments