
Welcome to the course! In this introduction, we’ll provide an overview of the course content, outlining the key topics and skills you'll learn throughout the program.
In this lecture, we'll set up a 'Products' table in the database and insert test data. This will help us test the API endpoints and display the data in the UI as we build the application.
In this lecture, we'll create an ASP.NET Core Web API project, set up the environment, and add essential functionalities. This includes configuring appsettings.json, setting up the DI container, implementing CORS policy for cross-origin requests, creating repository services with Dapper ORM, defining API endpoints in the controller, and more.
In this lecture, we'll create a Blazor WebAssembly Standalone app (UI project). We'll add environment-specific appsettings.json to the web root folder, configure the ApiBaseUrl, create an AppSettings object, and register it in
the Program.cs file. We'll also install necessary NuGet package and prepare the UI project for adding essential functionalities.
In this lecture, we’ll create a Product page in the Blazor WebAssembly UI project (created in Lecture-4). We’ll add the necessary Blazor directives, inject services, and build a Razor page with HTML elements and C# code for handling UI events. We'll retrieve data using the API endpoints and display it in the built-in Blazor QuickGrid component. Additionally, we'll implement a custom filter, column-based sortings, action column with edit and delete functionality, pagination, and related CSS styling, among other features.
In this final lecture, we’ll continue from Lecture-5 and create an 'Enter New Product' form by calling the relevant API endpoints. We'll add a 'Clear' button, form control validation, and a validation summary. We’ll also implement an 'Items per Page' selector, integrating it with the Blazor Paginator component, as well as row highlighting and row stripe effects. Finally, we'll wrap up with a summary of the entire application.
This section covers theoretical basics, and by the end of it, you will be able to:
Understand the purpose and core features of Entity Framework (EF) in ASP.NET Core Web API development.
Explain the differences between Code-First, Database-First, and Model-First approaches.
Define and work with POCO (Plain Old CLR Object) classes in EF.
Configure and use the DbContext class to manage database operations.
Define and interact with DbSet properties to perform CRUD operations on entity sets.
Shows a basic code example using EF to connect your Web API to a SQL Server database.
This section provides a solid foundation for using Entity Framework effectively in .NET Core Web API projects.
Start Your Next Developer Journey with the Blazor Framework in .NET 8.0
This course will guide you in building a real-world CRUD Blazor WebAssembly application with an ASP.NET Core Web API as the middle tier and an SQL Server database as the backend. You'll learn to implement practical features, covering UI development, API integration, and backend setup.
Course Contents
1. UI Development
Create a user-friendly interface that allows you to:
Add new products
Edit existing products
Delete products
Implement advanced UI features, including:
QuickGrid for data display
Pagination and items-per-page selector
Column-based sorting
Custom filtering option(s)
Row highlighting (actions column only) and row stripe effect for better readability
Confirmation popups (using JavaScript integration with IJSRuntime)
Clear form functionality
Form validation with a validation summary
Inject API services into Blazor components
2. API Development
Configure the API with:
appsettings.json for setting the API base URL and ConnectionString
Service injection in the API’s Program.cs (e.g., SqlConnection, repository services)
CORS policy setup for cross-origin requests
Create repository services using Dapper ORM
Define API endpoints in the controller to
Get all products
Retrieve a specific product
Edit a product
Delete a product
Connect the Blazor WebAssembly UI with API endpoints
3. Backend Development
Database setup and management, including:
Creating tables
Inserting sample data
By the end of this course, you’ll have a deep understanding of how to build a real-world CRUD application using the Blazor Framework with the latest .NET 8.0. This hands-on experience will empower you to create efficient, interactive web applications from scratch.