Question: 1. Create a new ASP.NET 6 MVC project 2. Create the following Models representing an auto repair shop Customer.cs Id FirstName LastName Phone Vehicle.cs Id

1. Create a new ASP.NET 6 MVC project

2. Create the following Models representing an auto repair shop

Customer.cs

Id

FirstName

LastName

Phone

Vehicle.cs

Id

Make

Model

Year

Mileage

VIN

ServicePerformed.cs

Id

TimePerformed

Notes

Technician.cs

Id

FirstName

LastName

EmployeeNumber

4. Using C# code establish the following relationships between the models (You will need to add properties to the models outside of what is listed above to accomplish this)

A Customer can have many Vehicles.

A Vehicle can only have one Customer.

A Vehicle can have many Services Performed.

A Service is performed by one technician.

A technician can have many Services Performed.

5. Generate the database from these models

6. Create a CustomerController and implement CRUD functionality with corresponding Views for the Customer table.

7. Include a screenshot of your localDB Database Diagram

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!