ASP.NET Core in action / Andrew Lock.
Material type:
- text
- computer
- online resource
- 1638356459
- 1617298301
- TK5105.89 .A26L64 2021
- Cataloging Notes: 20241218 STAMIU-0199STAMIU-0199
Item type | Current library | Collection | Call number | Status | Date due | Barcode | |
---|---|---|---|---|---|---|---|
![]() |
AMREF INTERNATIONAL UNIVERSITY (AMIU) LIBRARY General Stacks | Fiction | TK5105.89 .A26L64 2021 (Browse shelf(Opens below)) | Available | 20913 | ||
![]() |
AMREF INTERNATIONAL UNIVERSITY (AMIU) LIBRARY General Stacks | Fiction | TK5105.89 .A26L64 2021 (Browse shelf(Opens below)) | Available | 20914 |
Includes index.
Intro -- inside front cover -- ASP.NET Core in Action -- Copyright -- brief contents -- contents -- front matter -- preface -- acknowledgments -- about this book -- Who should read this book -- How this book is organized: A roadmap -- About the code -- liveBook discussion forum -- about the author -- about the cover illustration -- Part 1. Getting started with ASP.NET Core -- 1 Getting started with ASP.NET Core -- 1.1 An introduction to ASP.NET Core -- 1.1.1 Using a web framework -- 1.1.2 What is ASP.NET Core? -- 1.2 When to choose ASP.NET Core -- 1.2.1 What type of applications can you build? -- 1.2.2 If you're new to .NET development -- 1.2.3 If you're a .NET Framework developer creating a new application -- 1.2.4 Converting an existing ASP.NET application to ASP.NET Core -- 1.3 How does ASP.NET Core work? -- 1.3.1 How does an HTTP web request work? -- 1.3.2 How does ASP.NET Core process a request? -- 1.4 What you will learn in this book -- Summary -- 2 Your first application -- 2.1 A brief overview of an ASP.NET Core application -- 2.2 Creating your first ASP.NET Core application -- 2.2.1 Using a template to get started -- 2.2.2 Building the application -- 2.3 Running the web application -- 2.4 Understanding the project layout -- 2.5 The .csproj project file: Defining your dependencies -- 2.6 The Program class: Building a web host -- 2.7 The Startup class: Configuring your application -- 2.7.1 Adding and configuring services -- 2.7.2 Defining how requests are handled with middleware -- 2.8 Generating responses with Razor Pages -- 2.8.1 Generating HTML with Razor Pages -- 2.8.2 Handling request logic with PageModels and handlers -- Summary -- 3 Handling requests with the middleware pipeline -- 3.1 What is middleware? -- 3.2 Combining middleware in a pipeline -- 3.2.1 Simple pipeline scenario 1: A holding page.
3.2.2 Simple pipeline scenario 2: Handling static files -- 3.2.3 Simple pipeline scenario 3: A Razor Pages application -- 3.3 Handling errors using middleware -- 3.3.1 Viewing exceptions in development: DeveloperExceptionPage -- 3.3.2 Handling exceptions in production: ExceptionHandlerMiddleware -- 3.3.3 Handling other errors: StatusCodePagesMiddleware -- 3.3.4 Error handling middleware and Web APIs -- Summary -- 4 Creating a website with Razor Pages -- 4.1 An introduction to Razor Pages -- 4.1.1 Exploring a typical Razor Page -- 4.1.2 The MVC design pattern -- 4.1.3 Applying the MVC design pattern to Razor Pages -- 4.1.4 Adding Razor Pages to your application -- 4.2 Razor Pages vs. MVC in ASP.NET Core -- 4.2.1 MVC controllers in ASP.NET Core -- 4.2.2 The benefits of Razor Pages -- 4.2.3 When to choose MVC controllers over Razor Pages -- 4.3 Razor Pages and page handlers -- 4.3.1 Accepting parameters to page handlers -- 4.3.2 Returning responses with ActionResults -- Summary -- 5 Mapping URLs to Razor Pages using routing -- 5.1 What is routing? -- 5.2 Routing in ASP.NET Core -- 5.2.1 Using endpoint routing in ASP.NET Core -- 5.2.2 Convention-based routing vs. attribute routing -- 5.2.3 Routing to Razor Pages -- 5.3 Customizing Razor Page route templates -- 5.3.1 Adding a segment to a Razor Page route template -- 5.3.2 Replacing a Razor Page route template completely -- 5.4 Exploring the route template syntax -- 5.4.1 Using optional and default values -- 5.4.2 Adding additional constraints to route parameters -- 5.4.3 Matching arbitrary URLs with the catch-all parameter -- 5.5 Generating URLs from route parameters -- 5.5.1 Generating URLs for a Razor Page -- 5.5.2 Generating URLs for an MVC controller -- 5.5.3 Generating URLs with ActionResults -- 5.5.4 Generating URLs from other parts of your application -- 5.6 Selecting a page handler to invoke.
5.7 Customizing conventions with Razor Pages -- Summary -- 6 The binding model: Retrieving and validating user input -- 6.1 Understanding the models in Razor Pages and MVC -- 6.2 From request to model: Making the request useful -- 6.2.1 Binding simple types -- 6.2.2 Binding complex types -- 6.2.3 Choosing a binding source -- 6.3 Handling user input with model validation -- 6.3.1 The need for validation -- 6.3.2 Using DataAnnotations attributes for validation -- 6.3.3 Validating on the server for safety -- 6.3.4 Validating on the client for user experience -- 6.4 Organizing your binding models in Razor Pages -- Summary -- 7 Rendering HTML using Razor views -- 7.1 Views: Rendering the user interface -- 7.2 Creating Razor views -- 7.2.1 Razor views and code-behind -- 7.2.2 Introducing Razor templates -- 7.2.3 Passing data to views -- 7.3 Creating dynamic web pages with Razor -- 7.3.1 Using C# in Razor templates -- 7.3.2 Adding loops and conditionals to Razor templates -- 7.3.3 Rendering HTML with Raw -- 7.4 Layouts, partial views, and _ViewStart -- 7.4.1 Using layouts for shared markup -- 7.4.2 Overriding parent layouts using sections -- 7.4.3 Using partial views to encapsulate markup -- 7.4.4 Running code on every view with _ViewStart and _ViewImports -- 7.5 Selecting a view from an MVC controller -- Summary -- 8 Building forms with Tag Helpers -- 8.1 Catering to editors with Tag Helpers -- 8.2 Creating forms using Tag Helpers -- 8.2.1 The Form Tag Helper -- 8.2.2 The Label Tag Helper -- 8.2.3 The Input and Textarea Tag Helpers -- 8.2.4 The Select Tag Helper -- 8.2.5 The Validation Message and Validation Summary Tag Helpers -- 8.3 Generating links with the Anchor Tag Helper -- 8.4 Cache-busting with the Append Version Tag Helper -- 8.5 Using conditional markup with the Environment Tag Helper -- Summary.
9 Creating a Web API for mobile and client applications using MVC -- 9.1 What is a Web API and when should you use one? -- 9.2 Creating your first Web API project -- 9.3 Applying the MVC design pattern to a Web API -- 9.4 Attribute routing: Linking action methods to URLs -- 9.4.1 Combining route attributes to keep your route templates DRY -- 9.4.2 Using token replacement to reduce duplication in attribute routing -- 9.4.3 Handling HTTP verbs with attribute routing -- 9.5 Using common conventions with the [ApiController] attribute -- 9.6 Generating a response from a model -- 9.6.1 Customizing the default formatters: Adding XML support -- 9.6.2 Choosing a response format with content negotiation -- Summary -- Part 2. Building complete applications -- 10 Service configuration with dependency injection -- 10.1 Introduction to dependency injection -- 10.1.1 Understanding the benefits of dependency injection -- 10.1.2 Creating loosely coupled code -- 10.1.3 Dependency injection in ASP.NET Core -- 10.2 Using the dependency injection container -- 10.2.1 Adding ASP.NET Core framework services to the container -- 10.2.2 Registering your own services with the container -- 10.2.3 Registering services using objects and lambdas -- 10.2.4 Registering a service in the container multiple times -- 10.2.5 Injecting services into action methods, page handlers, and views -- 10.3 Understanding lifetimes: When are services created? -- 10.3.1 Transient: Everyone is unique -- 10.3.2 Scoped: Let's stick together -- 10.3.3 Singleton: There can be only one -- 10.3.4 Keeping an eye out for captured dependencies -- Summary -- 11 Configuring an ASP.NET Core application -- 11.1 Introducing the ASP.NET Core configuration model -- 11.2 Configuring your application with CreateDefaultBuilder -- 11.3 Building a configuration object for your app.
11.3.1 Adding a configuration provider in Program.cs -- 11.3.2 Using multiple providers to override configuration values -- 11.3.3 Storing configuration secrets safely -- 11.3.4 Reloading configuration values when they change -- 11.4 Using strongly typed settings with the options pattern -- 11.4.1 Introducing the IOptions interface -- 11.4.2 Reloading strongly typed options with IOptionsSnapshot -- 11.4.3 Designing your options classes for automatic binding -- 11.4.4 Binding strongly typed settings without the IOptions interface -- 11.5 Configuring an application for multiple environments -- 11.5.1 Identifying the hosting environment -- 11.5.2 Loading environment-specific configuration files -- 11.5.3 Setting the hosting environment -- Summary -- 12 Saving data with Entity Framework Core -- 12.1 Introducing Entity Framework Core -- 12.1.1 What is EF Core? -- 12.1.2 Why use an object-relational mapper? -- 12.1.3 When should you choose EF Core? -- 12.1.4 Mapping a database to your application code -- 12.2 Adding EF Core to an application -- 12.2.1 Choosing a database provider and installing EF Core -- 12.2.2 Building a data model -- 12.2.3 Registering a data context -- 12.3 Managing changes with migrations -- 12.3.1 Creating your first migration -- 12.3.2 Adding a second migration -- 12.4 Querying data from and saving data to the database -- 12.4.1 Creating a record -- 12.4.2 Loading a list of records -- 12.4.3 Loading a single record -- 12.4.4 Updating a model with changes -- 12.5 Using EF Core in production applications -- Summary -- 13 The MVC and Razor Pages filter pipeline -- 13.1 Understanding filters and when to use them -- 13.1.1 The MVC filter pipeline -- 13.1.2 The Razor Pages filter pipeline -- 13.1.3 Filters or middleware: Which should you choose? -- 13.1.4 Creating a simple filter.
13.1.5 Adding filters to your actions, controllers, Razor Pages, and globally.
One of the greatest and most complete books about ASP.NET Core! Delcoigne Vincent, Wavenet Fully updated to ASP.NET 5.0, ASP.NET Core in Action, Second Edition is a hands-on primer to building cross-platform web applications with your C# and .NET skills. Even if you've never worked with ASP.NET you'll start creating productive cross-platform web apps fast. about the technology Build full-stack web applications that run anywhere. Developers love ASP.NET Core for its libraries and pre-built components that maximize productivity. Version 5.0 offers new features for server-side apps, as well as background services for cross-platform development. about the book ASP.NET Core in Action, Second Edition is a comprehensive guide to creating web applications with ASP.NET Core 5.0. Go from basic HTTP concepts to advanced framework customization. Illustrations and annotated code make learning visual and easy. Master logins, dependency injection, security, and more. This updated edition covers the latest features, including Razor Pages and the new hosting paradigm. what's inside Developing apps for Windows and non-Windows servers Configuring applications Building custom components Logging, testing, and security about the audience For intermediate C# developers. about the author Andrew Lock is a Microsoft MVP who has worked with ASP.NET Core since before its first release. The most comprehensive ASP.NET Core book on the market. It covers just about everything you need to learn to quickly become productive in the often confusing and fast-changing world of .NET Core. Filip Wojcieszyn, Sonova AG Fantastic book. The topics are explained clearly and thoroughly. Luis Moux, EMO A comprehensive reference for ASP.NET Core.
Cataloging Notes: 20241218 STAMIU-0199STAMIU-0199
Description based on print version record.
There are no comments on this title.