Overview
Blazor is an open-source web framework written in C# that enables developers to create interactive web user interfaces and applications using C#. Entity Framework (EF) Core is an object-database mapper for .NET that provides developers with an automated mechanism for accessing and storing data in databases.
This instructor-led, live training (online or onsite) is aimed at web developers who wish to learn how to use Progressive Web Application (PWA) development features to create an app-like experience in a website using Entity Framework (EF) Core and Blazor.
By the end of this training, participants will be able to:
- Use the EF package to work with databases.
- Use Blazor components, services, dependency injection, layout, and routing.
- Create service workers to enable PWA features in an application.
- Utilize push notifications and other PWA features.
Format of the Course
- Interactive lecture and discussion.
- Lots of exercises and practice.
- Hands-on implementation in a live-lab environment.
Course Customization Options
- To request a customized training for this course, please contact us to arrange.
Requirements
- Understanding of C#
- Knowledge of Blazor and JavaScript
- Experience with .NET framework
Audience
- Web Developers
Course Outline
Introduction
- Overview of Entity Framework (EF) Core
- Overview of Progressive Web App (PWA)
Entity Framework (EF) Core
- Installing EF Core
- Modeling using code first
- Modeling using database first
- Using fluent API
Querying and Saving Data with EF Core
- Basic queries using LINQ
- Calling stored procedures
- Controlling the tracking behavior
- Saving changes
- Bulk insert
- Transactions
Blazor Components
- Understanding the Razor fundamentals
- Working with components in Blazor
- Using C# in components
- Parameterized components
- Component life cycle
- One-way data binding
- Two-way binding
- Event binding
Advanced Blazor Component Concepts
- Rendering raw HTML
- Rendering a child content
- Using RenderFragment
- Using RenderTreeBuilder
- Using @key and @attribute
Routing and Layout
- Creating a master layout
- Routing
- Using URL helpers
Forms and Validation
- Using EditForm
- Form validation
- Using @ref
Dependency Injection (DI) and JSInterop
- Understanding DI
- DI with default service
- DI with custom service
- Calling a JavaScript function
- Calling C# from JavaScript
Debugging and Deploying
- Debugging a Blazor app
- Deploying a Blazor app
- Upgrading a Blazor app
Security
- Blazor authentication
- Using ASP.NET core identity and JWT
Progressive Web Application (PWA) Development
- Overview of PWA
- Understanding the features of PWA
- Blazor PWA
- Creating offline applications
- Using service workers
- Customizing the application
- Caching
- Adding push notifications
Summary and Next Steps