Interested in a private company training? Request it here.
This module gives you an introduction to modern web development. You will learn where Blazor positions itself in this story and why it is a great choice for building the websites of the future using C#.
In this module you'll get acquainted with the most important building blocks for any Blazor application. This builds the foundation for all following chapters.
Data binding allows you to forget about the HTML while writing C# code. It allows you to inject data into a view without creating a strong dependency between the two. This results into more flexible, testable and maintainable code.
In modern web development, we construct applications from components, which, in turn, are often composed of smaller components. A Blazor component is a self-contained segment of the user interface, designed with a single responsibility. Blazor components, crafted from Razor and C#, offer ease of understanding, debugging, and maintenance. Naturally, these components can be reused across different pages, enhancing development efficiency.
Most applications require users to input data. But how do we present this information to the users, capture any changes they make, and validate the data?
Blazor components are created, undergo changes, and are eventually removed. In this section, we will explore the points within a component's lifecycle where you can intercept and interact with these stages.
Dependency Inversion is a foundational principle of sound Object-Oriented design, with Dependency Injection serving as its crucial facilitator. In this chapter, we will delve into both dependency inversion and injection, exploring their essential roles in Blazor architecture. We will demonstrate these concepts by developing a service that abstracts the processes of data retrieval and storage. Such services are pivotal in enabling components to operate efficiently both on the server and in WebAssembly (WASM).
Data access is a fundamental aspect of any application. In this module, we will explore how to use Entity Framework Core (EF Core) to interact with a database in a Blazor application.
What components are included with Blazor out-of-the-box? Is it possible to dynamically select components for use? Furthermore, does Blazor offer a component for displaying a data table that supports sorting and filtering? It's worth noting that we will focus on components not discussed elsewhere.
Blazor components are the foundational elements for building websites. But how can you create components that are truly reusable?
So, how do you communicate with a REST service using Blazor? We'll employ the HttpClient class, which you're likely familiar with from other .NET projects, albeit with a twist.
Blazor is a .NET framework that enables the creation of Single Page Applications (SPAs), similar to how popular JavaScript frameworks like Angular, React, and Vue.js are used. But what exactly is a SPA? We will explore how routing allows us to navigate between different sections of an SPA and how data can be shared among various components.
How does Blazor manage state, and how can we prevent losing this state when a user accidentally refreshes the browser? The module give you an introduction to state management and persisting state in Blazor.
A confusing part of Blazor are the different render modes. In short: a component can be interactive or static. This chapter gives a detailed overview of all the render modes, how to set a render mode and how to inspect which render mode is being used.
In this module, we focus on managing Blazor applications beyond local development. You'll learn how to structure your application for scalability, ensure its quality through testing, and prepare it for deployment.
‘Full stack development’ encompasses the practice of engaging with every layer of technology stacks in software development, typically involving both front-end and back-end tasks. Microsoft Blazor, a framework by Microsoft, facilitates the creation of modern applications across various platforms, including web, single page, mobile, and desktop. Blazor uniquely enables the use of C#, leveraging the skills and tools familiar to .NET developers. Consider attending this training to gain an early advantage in mastering Blazor. All examples and labs are based on the latest Long-Term Support (LTS) version of .NET and Visual Studio.
This training requires a solid understanding of C# and recommends basic knowledge of HTML and CSS.