Building A Web Application With: Assignment 03
Building A Web Application With: Assignment 03
Building A Web Application With: Assignment 03
Introduction
Imagine you're an employee of a product retailer named eStore. Your manager
has asked you to develop a Web application for member management, product
management, and order management. The application has a default account
whose email is “[email protected]” and password is “admin@@” that stored in
the appsettings.json.
Assignment Objectives
In this assignment, you will:
Use the Visual Studio.NET to create a Web application and Class Library
(.dll) project.
Perform CRUD actions using ADO.NET and Entity Framework Core
1|Page
Use LINQ to query and sort data
Apply passing data in ASP.NET Core MVC application
Apply 3-layers architecture to develop the application
Apply Repository pattern and Singleton pattern in a project
Add CRUD and searching actions to the Web application.
Apply to validate data type for all fields
Run the project and test the actions of the Web application.
Database Design
2|Page
Main Functions
Member authentication by Email and Password. If the user is “Admin” (get
from appsettings.json file) then allows to perform all actions, otherwise, the
normal user (get from the Member table in database) is allowed to
view/create/update the profile and view their orders history.
Member management, Product management, and Order management:
Read, Create, Update and Delete actions.
Search ProductName (keywork of ProductName) and UnitPrice
Create a report statistics sales by the period from StartDate to EndDate, and
sort sales in descending order
Guidelines
Step 01. Open the Visual Studio .NET application and create a Blank solution
named Ass03Solution_StudentCode
From the File menu | Add | New Project, on the Add New Project dialog, select
“Class Library” and performs steps as follows:
3|Page
3
4|Page
6
5|Page
1
6|Page
5
Step 05. Create folders and add class to the projects as follows:
7|Page
Activity 02: Develop BusinessObject project
Step 01. Write codes to create classes and definition all data members
Step 02. Write codes to perform business rules for data members
8|Page
Step 03. Write codes for ProductDAO.cs, IProductRepository.cs and
ProductRepository.cs
Step 04. Write codes for OrderDAO.cs, IOrderRepository.cs and
OrderRepository.cs
Step 05. Write codes for OrderDetailDAO.cs, IOrderDetailRepository.cs
and OrderDetailRepository.cs
Activity 05: Run the Web project and test all actions
For example: Search products by ProductName and UnitPrice
9|Page