Skip to content

chore: organize folder structure for improved maintainability #6

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

Merged
merged 5 commits into from
Jun 11, 2025

Conversation

yasinramazangok
Copy link
Contributor

This pull request improves the folder structure of the project to enhance maintainability, readability, and scalability.
✔️ Reorganized the DTOs into entity-specific folders
✔️ Grouped Validators for better clarity
✔️ Separated services interfaces and implementations
✔️ Added Mapping folder for AutoMapper profiles

Commits follow conventional commit standards (e.g., chore(dev): merge update-folder-structure), and all changes were made on a dedicated feature branch and merged into main via dev.

Please review and let me know if any adjustments are needed.

…ject

- Created a new `CoreXCrud.sln` file that includes project configuration, Visual Studio version, project GUIDs, and solution configurations for Debug and Release modes.
- Included necessary global sections for solution properties and extensibility.

<-- This commit message was generated with GitHub Copilot in Visual Studio. -->
- 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. -->
- Migrated model classes from `CoreXCrud.Models` to `CoreXCrud.Entities`.
- Updated controller files to reflect the new namespace structure.
- Added a new folder for `Models` in the project file.
- Introduced empty service interfaces and classes for `OrderDetail`, `Order`, `Product`, and `User`, organized under their respective namespaces.
- Maintained existing FluentValidation and Serilog integrations for validation and logging.
- This refactor aims to enhance project organization and modularity.

<-- This commit message was generated with GitHub Copilot in Visual Studio. -->
@ThecoderPinar ThecoderPinar merged commit d3cf1d1 into ThecoderPinar:main Jun 11, 2025
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