Description: This is an e-commerce web application built using ASP.NET MVC. It allows users to view products, add them to the cart, and make purchases.
- User Features:
-
View Products: Users can browse through the product catalog with enhanced features such as:
- Product Search: Quickly find specific products using the search functionality.
- Pagination: Navigate through products easily with pagination, ensuring better usability and performance.
- Caching: Improve load times by caching product data, reducing the need for repeated database queries.
-
Add Products to the Cart: Users can add products to their cart with the following capabilities:
- Increase/Decrease Quantities: Adjust the quantity of products directly in the cart, with a maximum of 5 units per product.
- Remove Products: Easily remove products from the cart.
- Cart Limitations: Each cart can contain up to a maximum of 5 different products.
-
Make purchases
-
- Database: The project uses SQL Server as the database.
- Approach: The project is developed using the Database First approach, where the database schema is used to generate the data models.
- Fluent API: The database configurations and relationships are managed using the Fluent API, located in the
./src/Data/Configuration
directory. This allows precise control over how the entities and their relationships are mapped to the database schema. - Description: The main tables include entities such as
Users
,Products
,Orders
, andOrderDetails
. Relationships between these entities are defined using Fluent API configurations. - Migrations: Although the project uses the Database First approach, any updates to the database schema should be followed by updating the models and Fluent API configurations.
##Screen Shot