Build professional-grade full-stack web applications using C# and ASP.NET Core.
In ASP.NET Core in Action, Third Edition you’ll learn how to:
Build minimal APIs for serving JSON to client-side applications
Create dynamic, server-side rendered applications using Razor Pages
User authentication and authorization
Store data using Entity Framework Core
Unit and integration tests for ASP.NET Core applications
Write custom middleware and components
Fully updated to ASP.NET Core 7.0! In ASP.NET Core in Action, Third Edition Microsoft MVP Andrew Lock teaches you how you can use your C# and .NET skills to build amazing cross-platform web applications. This revised bestseller reveals the latest .NET patterns, including minimal APIs and minimal hosting. Even if you've never worked with ASP.NET, you'll start creating productive cross-platform web apps fast. Illustrations and annotated code make learning visual and easy.
about the technology
The ASP.NET Core web framework delivers everything you need to build professional-quality web applications. With productivity-boosting libraries for server-side rendering, secure APIs, easy data access and more, you’ll spend your time implementing features instead of researching syntax and tracking down bugs. This book is your guide.
about the book
ASP.NET Core in Action, Third Edition shows you how to create production-grade web applications with ASP.NET Core 7.0. You’ll learn from hands-on examples, insightful illustrations, and nicely explained code. Updated coverage in this Third Edition includes creating minimal APIs, securing APIs with bearer tokens, WebApplicationBuilder, and more.
what's inside
Minimal APIs for serving JSON
Server-side rendering using Razor Pages
Data access with Entity Framework Core
Write custom middleware and components
about the reader
For beginning to intermediate web developers. Examples are in C#.
about the author
Andrew Lock is a Microsoft MVP who has worked with ASP.NET Core since before its first release.
concepts explained in this book
Model binding is the process of locating incoming data, converting it to appropriate types, and assigning it to application objects or handler parameters.
Razor Pages is an ASP.NET Core page-focused programming model in which independently addressable pages combine Razor markup with request-handling logic.
Middleware is software that mediates communication or processing between components, often by intercepting, transforming, or coordinating operations in a pipeline.
A servlet filter is a Java web component that intercepts requests and responses in a servlet-based application to process, modify, or reject them.
A controller is a software component that receives input or requests and coordinates other components or operations to produce a response or change application state.
A PageModel is an ASP.NET Core Razor Pages class containing page state, data, and request-handling logic.
Tag Helpers are ASP.NET Core components that process HTML-like elements during Razor view or page rendering.
A route template is a URL path pattern, often containing parameters, that an application uses to match requests to handlers or operations.