Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

teps for completing this practical set 1. Define a new Model class called 'Customer' for describing the customers of this burger shop. Suppose the shop

image text in transcribed

teps for completing this practical set 1. Define a new Model class called 'Customer' for describing the customers of this burger shop. Suppose the shop needs to record the following pieces of information about a customer: family name, given name, date of birth, email address, mobile number and postal code. - The class you define must have the properties for all pieces of info above and an ID property to uniquely identify a customer. - For the mobile number and the postal code, you should use string type, which allows ' 0 ' to appear in the beginning and makes the later validation easier. - All property names are of your choice. 2. Perform scaffolding to generate Razor pages for CRUD operations on 'Customer' table in the database. You should use the existing database context class for database connection (NB: this one was created when you scaffold the Burger class in Prac1). Hint: refer to both Lecture 4 and Lecture 5 slides. 3. Migrate the Customer class to database. 4. Modify the "_Layout.cshtml" file to add a "Customer Index" hyperlink to the navigation bar. This hyperlink should point to the Index page for the customers. Hint: refer to our sample project accompanying Lecture 4. 5. Run the project and Click the "Customer Index" link in the navigation bar. Use the web interface obtained to add the following data into the Customer table in the database. Table 1: Initial Customers Details At the end of this step, after clicking the "Customer Index" link, the following output should be roughly displayed in the browser

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

3. Identify cultural universals in nonverbal communication.

Answered: 1 week ago

Question

2. Discuss the types of messages that are communicated nonverbally.

Answered: 1 week ago