Building a Data-driven ASP.NET Core 6 Blazor Server Application with EF Core
This course will teach you how to use Blazor Server and Entity Framework Core to build a data-driven web application with .NET and C#.
What you'll learn
Blazor Server and Entity Framework Core are a popular combination to build data-driven web applications, because there's no need to implement a web API. Instead, you can access the database directly from your Blazor Server application by using EF Core. In this course, Building a Data-driven ASP.NET Core 6 Blazor Server Application with EF Core, you’ll learn how to build a data-driven web application from start to finish. First, you'll create the initial Blazor Server project and you'll set up Entity Framework Core. Next, you'll learn how to read and show employees in a paginated table and you will learn how to implement the components to add, edit, and delete an employee. Finally, you’ll learn how to handle concurrency conflicts in your Blazor Server application. These conflicts can happen when multiple users are working with your application. When you’re finished with this course, you’ll have the skills and knowledge of Blazor Server and Entity Framework Core needed to build data-driven web applications with .NET and C#.
Table of contents
- Introduction 1m
- Create the Model Classes 5m
- Implement a DbContext 4m
- Register the DbContext as a Service 5m
- Move the Connection String to App Settings 2m
- Add and Run the First Migration 6m
- Generate a SQL File to Migrate the Database 2m
- Apply Migrations at Runtime 5m
- Seed the Database with Data 5m
- Summary 1m
- Introduction 1m
- Create an AddEmployee Component 3m
- Implement a Form 4m
- Add Text Input Fields 3m
- Show Property-specific Validation Errors 3m
- Add a Checkbox 2m
- Add a Dropdown List 3m
- Load the Dropdown Data 6m
- Save the Employee to the Database 4m
- Show Success and Error Messages 4m
- Ensure the Employee Is Added Only Once 3m
- Remove Alerts on Invalid Submit 3m
- Summary 1m
- Introduction 1m
- Create an EditEmployee Component 4m
- Load the Employee to Edit 4m
- Handle an Invalid Employee Id 4m
- Load the Departments 3m
- Show an Update and a Cancel Button 3m
- Update the Employee in the Database 4m
- Handle Errors When Saving the Employee 2m
- Update the Department Id 6m
- Navigate Back to the Overview after Update 3m
- Store the Page State of the Overview 6m
- Navigate Back to the Overview after Cancel 4m
- Summary 1m