Skip to content

Fahiz_countries Table Complete and Mashrafee Problem Fixed....#92

Merged
mihaduldev merged 6 commits into
Devfrom
Fahiz_countries
Dec 8, 2025
Merged

Fahiz_countries Table Complete and Mashrafee Problem Fixed....#92
mihaduldev merged 6 commits into
Devfrom
Fahiz_countries

Conversation

@Fahiz121
Copy link
Copy Markdown
Collaborator

@Fahiz121 Fahiz121 commented Dec 7, 2025

No description provided.

@Fahiz121 Fahiz121 added this to the feature_countries milestone Dec 7, 2025
@Fahiz121 Fahiz121 requested a review from mihaduldev December 7, 2025 17:47
@Fahiz121 Fahiz121 self-assigned this Dec 7, 2025
@mihaduldev mihaduldev requested a review from Copilot December 7, 2025 17:48
@Fahiz121 Fahiz121 linked an issue Dec 7, 2025 that may be closed by this pull request
@Fahiz121 Fahiz121 removed this from the feature_countries milestone Dec 7, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a complete CRUD implementation for a Countries table and refactors the SendOtpCommandHandler to use a simpler using statement pattern (the "Mashrafee Problem" fix). The Countries feature follows the existing Clean Architecture pattern with Domain, Application, Infrastructure, and Web.Api layers.

Key Changes

  • Added full CRUD operations for Countries entity (Create, Read, GetById, Update, Delete)
  • Refactored SendOtpCommandHandler to use declaration pattern instead of traditional using blocks
  • Added Countries DbSet to ApplicationDbContext and IApplicationDbContext

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
src/Domain/Countries/Country.cs New domain entity for Country with Id, Name, Capital, PhoneCode, and IsActive properties
src/Infrastructure/Countries/CountryConfiguration.cs EF Core entity configuration defining table mapping and constraints for Country entity
src/Infrastructure/Database/ApplicationDbContext.cs Added Countries DbSet to the database context
src/Application/Abstractions/Data/IApplicationDbContext.cs Added Countries DbSet to the interface
src/Application/Countries/Create/* Command, handler, and validator for creating countries
src/Application/Countries/Update/* Command, handler, and validator for updating countries
src/Application/Countries/Delete/* Command, handler, and validator for deleting countries
src/Application/Countries/Get/* Query, handler, and response for getting all countries
src/Application/Countries/GetById/* Query, handler, and response for getting country by ID
src/Web.Api/Endpoints/Countries/* Five endpoint classes (Create, Update, Delete, Get, GetById) for the Countries API
src/Web.Api/Endpoints/Tags.cs Added "Countries" tag constant for API documentation
src/Application/SmtpConfigs/OtpMail/SendOtpCommandHandler.cs Refactored to use using declaration pattern instead of traditional using blocks

Comment thread src/Web.Api/Endpoints/Countries/Create.cs Outdated
Comment thread src/Application/Countries/GetById/GetCountryByIdResponse.cs Outdated
Comment thread src/Application/Countries/Get/GetCountriesQuery.cs Outdated
Comment thread src/Application/Countries/Create/CreateCountryCommand.cs Outdated
Comment thread src/Web.Api/Endpoints/Countries/Update.cs Outdated
Comment thread src/Application/Countries/Get/GetCountriesQuery.cs Outdated
Comment thread src/Application/Countries/Get/GetCountriesQueryHandler.cs Outdated
Comment thread src/Domain/Countries/Country.cs Outdated
Comment thread src/Domain/Countries/Country.cs Outdated
Comment thread src/Application/Countries/Update/UpdateCountryCommand.cs Outdated
@Fahiz121 Fahiz121 added .NET Pull requests that update .NET code new feature labels Dec 7, 2025
@mihaduldev mihaduldev requested a review from Copilot December 7, 2025 19:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 26 out of 26 changed files in this pull request and generated 11 comments.

Comment thread src/Application/Countries/Create/CreateCountryValidator.cs Outdated
Comment thread src/Application/Countries/Create/CreateCountryCommandHandler.cs Outdated
Comment thread src/Application/Countries/Create/CreateCountryCommand.cs Outdated
Comment thread src/Application/Countries/Create/CreateCountryCommand.cs Outdated
Comment thread src/Web.Api/Endpoints/Countries/Create.cs Outdated
Comment thread src/Domain/Countries/Country.cs Outdated
Comment thread src/Domain/Countries/Country.cs Outdated
Comment thread src/Web.Api/Endpoints/Countries/Get.cs Outdated
Comment thread src/Web.Api/Endpoints/Countries/Update.cs Outdated
Comment thread src/Infrastructure/Countries/CountryConfiguration.cs Outdated
@mihaduldev mihaduldev merged commit 1ba78ff into Dev Dec 8, 2025
@mihaduldev mihaduldev deleted the Fahiz_countries branch December 8, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ASP.NET WEB API .NET Pull requests that update .NET code new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature_countries

3 participants