What you'll learn
In this project, you'll use Razor Pages to build an application that allows us to create tasks and save them to a database, enforces data validation for those tasks, and displays them in a table on the app home page.
Table of contents
Setup
15m
- Learn how to setup and configure a local development environment to be able to complete the project tasks.
Creating the Layout and Navigation
15m
- Create the application pages, and add links and routes to navigate between them.
Building the Task Form
30m
- Build the form and handler method that will allow us to create new Tasks.
Saving Data to the Database
25m
- Create and register the data context class, and persist the new tasks to the database.
Displaying Data on the Home Page
25m
- Retrieve and display the created tasks in a table on the home page.
Adding Validation to the Create Form
15m
- Add validation to the Task form to improve data integrity.