Book description
Bestselling author Mark Price is back to guide you through the coolest and most common technologies a .NET developer should know: Blazor, .NET MAUI, gRPC, GraphQL, SQL Server, Cosmos DB, OData, SignalR, Azure Functions, and more! Purchase of the print or Kindle book includes a free eBook in PDF format.
Key Features
- Build services using a variety of technologies including Web API, OData, gRPC, GraphQL, SignalR, and Azure Functions
- Learn how to use specialized libraries to improve all aspects of your applications, including performance and localization
- Leverage .NET MAUI to develop cross-platform desktop and mobile apps with ease
Book Description
Apps and Services with .NET 7 is for .NET 6 and .NET 7 developers who want to kick their C# and .NET understanding up a gear by learning the practical skills and knowledge they need to build real-world applications and services. It covers specialized libraries that will help you monitor and improve performance, secure your data and applications, and internationalize your code and apps.
With chapters that put a variety of technologies into practice, including Web API, OData, gRPC, GraphQL, SignalR, and Azure Functions, this book will give you a broader scope of knowledge than other books that often focus on only a handful of .NET technologies. It covers the latest developments, libraries, and technologies that will help keep you up to date.
You’ll also leverage .NET MAUI to develop mobile apps for iOS and Android as well as desktop apps for Windows and macOS.
What you will learn
- Learn how to build more efficient, secure, and scalable apps and services
- Leverage specialized .NET libraries to improve your applications
- Implement popular third-party libraries like Serilog and FluentValidation
- Build cross-platform apps with .NET MAUI and integrate with native mobile features
- Get familiar with a variety of technologies for implementing services like gRPC and GraphQL
- Explore Blazor WebAssembly and use open-source Blazor component libraries
- Store and manage data locally and in the cloud with SQL Server and Cosmos DB
Who this book is for
This book is for .NET developers interested in exploring more specialized libraries and implementation fundamentals behind building services and apps. You’ll need to know your way around .NET and C# quite well before you can dive in, so if you want to work your way up to this book, pick up Mark’s other .NET book, C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals, first.
Table of contents
- Preface
-
Introducing Apps and Services with .NET
- Introducing this book and its contents
- App and service technologies
- Setting up your development environment
- Using an analyzer to write better code
- What’s new in C# and .NET?
- Making good use of the GitHub repository for this book
- Where to go for help
- Practicing and exploring
- Summary
-
Managing Relational Data Using SQL Server
- Understanding modern databases
- Managing data with Transact-SQL
- Managing data with low-level APIs
-
Managing data with EF Core
- Understanding Entity Framework Core
- Scaffolding models using an existing database
- Setting up the dotnet-ef tool
- Defining EF Core models
- Using EF Core conventions to define the model
- Using EF Core annotation attributes to define the model
- Using the EF Core Fluent API to define the model
- Understanding data seeding with the Fluent API
- Defining the Northwind database model
- Querying the Northwind model
- Mapping inheritance hierarchies with EF Core
-
Building a reusable entity data model
- Creating a class library for entity models using SQL Server
- Creating a class library for the data context using SQL Server
- Calculated properties on entity creation
- Creating a test project to check the integration of the class libraries
- Writing unit tests for entity models
- Running unit tests using Visual Studio 2022
- Running unit tests using Visual Studio Code
- Cleaning up data resources
- Practicing and exploring
- Summary
- Managing NoSQL Data Using Azure Cosmos DB
- Benchmarking Performance, Multitasking, and Concurrency
- Implementing Popular Third-Party Libraries
- Observing and Modifying Code Execution Dynamically
- Handling Dates, Times, and Internationalization
- Protecting Your Data and Applications
- Building and Securing Web Services Using Minimal APIs
- Exposing Data via the Web Using OData
- Combining Data Sources Using GraphQL
- Building Efficient Microservices Using gRPC
- Broadcasting Real-Time Communication Using SignalR
-
Building Serverless Nanoservices Using Azure Functions
-
Understanding Azure Functions
- Azure Functions triggers and bindings
- NCRONTAB expressions
- Azure Functions versions and languages
- Azure Functions hosting models
- Azure Functions hosting plans
- Azure Storage requirements
- Testing locally with Azurite
- Azure Functions authorization levels
- Azure Functions support for dependency injection
- Installing Azure Functions Core Tools
- Building an Azure Functions project
- Responding to timer and resource triggers
- Publishing an Azure Functions project to the cloud
- Cleaning up Azure Functions resources
- Practicing and exploring
- Summary
-
Understanding Azure Functions
- Building Web User Interfaces Using ASP.NET Core
-
Building Web Components Using Blazor WebAssembly
- Understanding Blazor
- Building Blazor components
- Building a Blazor data component
- Implementing caching using local storage
- Building Progressive Web Apps
- Practicing and exploring
- Summary
- Leveraging Open-Source Blazor Component Libraries
-
Building Mobile and Desktop Apps Using .NET MAUI
- Understanding XAML
- Understanding .NET MAUI
- Building mobile and desktop apps using .NET MAUI
- Using shared resources
- Using data binding
- Understanding MVVM
-
Consuming a web service from a mobile app
- Creating a Minimal API web service for customers
- Configuring the web service to allow unsecure requests
- Connecting to local web services while testing
- Configuring the iOS app to allow unsecure connections
- Configuring the Android app to allow unsecure connections
- Getting customers from the web service
- Practicing and exploring
- Summary
-
Integrating .NET MAUI Apps with Blazor and Native Platforms
- Building .NET MAUI Blazor Hybrid apps
- Integrating with native platforms
- Using third-party control libraries
- Practicing and exploring
- Summary
- Introducing the Survey Project Challenge
- Epilogue
- Index
Product information
- Title: Apps and Services with .NET 7
- Author(s):
- Release date: November 2022
- Publisher(s): Packt Publishing
- ISBN: 9781801813433
You might also like
book
Apps and Services with .NET 8 - Second Edition
Bestselling author Mark Price is back to guide you through the latest and most common technologies …
book
Microservices in .NET, Second Edition
In Microservices in .NET, Second Edition you will learn how to: Build scalable microservices that are …
book
.NET Core in Action
.NET Core in Action shows .NET developers how to build professional software applications with .NET Core. …
book
Microsoft Blazor: Building Web Applications in .NET 6 and Beyond
Build web applications in C# and Microsoft .NET 6 that run in any modern browser and …