AspNetCore.Docs/aspnetcore/toc.md

20 KiB

Introduction

Getting Started

Create a Web app

Create a Web API

Tutorials

Create a Razor Pages web app on Windows

Getting started with Razor Pages

Adding a model

Scaffolded Razor Pages

SQL Server LocalDB

Updating the pages

Adding a new field

Adding validation

Uploading files

Create a Razor Pages web app on a Mac

Getting started with Razor Pages

Adding a model

Create a Razor Pages web app with VS Code

Getting started with Razor Pages

Adding a model

Create an MVC web app on Windows

Getting started

Adding a controller

Adding a view

Adding a model

Working with SQL Server LocalDB

Controller methods and views

Adding search

Adding a New Field

Adding Validation

Examining the Details and Delete methods

Create an MVC web app on a Mac

Getting started

Adding a controller

Adding a view

Adding a model

Working with SQLite

Controller methods and views

Adding search

Adding a New Field

Adding Validation

Examining the Details and Delete methods

Create an MVC web app with VS Code

Getting started

Adding a controller

Adding a view

Adding a model

Working with SQLite

Controller methods and views

Adding search

Adding a New Field

Adding Validation

Examining the Details and Delete methods

Data access - working with EF Core

Getting started

Create, Read, Update, and Delete operations

Sorting, filtering, paging, and grouping

Migrations

Creating a complex data model

Handling concurrency conflicts

Inheritance

Advanced topics

Creating backend services for mobile apps

Building Web APIs

Create a Web API

ASP.NET Core Web API Help Pages using Swagger

Creating backend services for native mobile applications

Fundamentals

Application Startup

Dependency Injection (Services)

Middleware

Working with multiple environments

Configuration

Logging

Error handling

Routing

File Providers

Working with static files

Hosting

Session and application state

Servers

Kestrel

ASP.NET Core Module

HTTP.sys

Globalization and localization

Configure Portable Object localization with Orchard Core

Request Features

Open Web Interface for .NET (OWIN)

WebSockets

Microsoft.AspNetCore.All metapackage

Choose between .NET Core and .NET Framework runtime

Choose between ASP.NET Core and ASP.NET

MVC

Razor Pages

Razor syntax

Route and app convention features

Model Binding

Model validation

Views

Razor syntax

View compilation

Layout

Tag helpers

Authoring tag helpers

Using tag helpers in forms

Built-in tag helpers

Anchor tag helper
Cache tag helper
Distributed Cache tag helper
Environment tag helper
Image tag helper

Partial views

Dependency injection into views

View components

Controllers

Routing to controller actions

File uploads

Dependency injection into controllers

Testing controllers

Advanced

Working with the Application Model

Filters

Areas

Application parts

Custom Model Binding

Custom formatters

Formatting response data

Testing and debugging

Unit testing

Integration testing

Testing controllers

Remote debugging

Snapshot debugging

Working with Data

Getting started with ASP.NET Core and Entity Framework Core using Visual Studio

ASP.NET Core with EF Core - new database

ASP.NET Core with EF Core - existing database

Getting Started with ASP.NET Core and Entity Framework 6

Azure Storage

Adding Azure Storage by using Visual Studio Connected Services

Get started with Blob storage and Visual Studio Connected Services

Get Started with Queue Storage and Visual Studio Connected Services

Get Started with Table Storage and Visual Studio Connected Services

Client-Side Development

Using Gulp

Using Grunt

Manage client-side packages with Bower

Building beautiful, responsive sites with Bootstrap

Knockout.js MVVM Framework

Using AngularJS for Single Page Apps

Using JavaScriptServices for Single Page Apps

Styling applications with Less, Sass, and Font Awesome

Bundling and minification

Building Projects with Yeoman

Mobile

Creating Backend Services for Native Mobile Applications

Hosting and deployment

Hosting

Host on Windows with IIS

ASP.NET Core Module Configuration Reference

Development-time IIS support in Visual Studio for ASP.NET Core

IIS Modules with ASP.NET Core

Host in a Windows service

Host on Linux with Nginx

Host on Linux with Apache

Host in Docker

Building Docker Images

Visual Studio Tools for Docker

Publish to a Docker Image

Deployment

Publish to Azure with Visual Studio

Continuous deployment to Azure with Visual Studio and Git

Continuous deployment to Azure with VSTS

Publish profiles in Visual Studio

Directory structure

Security

Authentication

Community OSS authentication options

Introduction to Identity

Configure Identity

Configure Windows Authentication

Configure primary key type for Identity

Custom storage providers for ASP.NET Core Identity

Enabling authentication using Facebook, Google and other external providers

Facebook authentication

Twitter authentication

Google authentication

Microsoft authentication

Other authentication providers

Account Confirmation and Password Recovery

Enabling QR Code generation in ASP.NET identity

Two-factor authentication with SMS

Azure Active Directory

Integrating Azure AD Into an ASP.NET Core Web App

Calling a ASP.NET Core Web API From a WPF Application Using Azure AD

Calling a Web API in an ASP.NET Core Web Application Using Azure AD

Securing ASP.NET Core apps with IdentityServer4

Securing ASP.NET Core apps with Azure App Service Authentication (Easy Auth)

Authorization

Introduction

Create an app with user data protected by authorization

Simple Authorization

Role based Authorization

Claims-Based Authorization

Custom Policy-Based Authorization

Dependency Injection in requirement handlers

Resource Based Authorization

View Based Authorization

Limiting identity by scheme

Data Protection

Introduction to Data Protection

Getting Started with the Data Protection APIs

Consumer APIs

####Consumer APIs Overview ####Purpose Strings ####Purpose hierarchy and multi-tenancy ####Password Hashing ####Limiting the lifetime of protected payloads ####Unprotecting payloads whose keys have been revoked ###Configuration ####Configuring Data Protection ####Default settings ####Machine-wide policy ####Non-DI aware scenarios ###Extensibility APIs ####Core cryptography extensibility ####Key management extensibility ####Miscellaneous APIs ###Implementation ####Authenticated encryption details. ####Subkey Derivation and Authenticated Encryption ####Context headers ####Key Management ####Key Storage Providers ####Key Encryption At Rest ####Key Immutability and Changing Settings ####Key Storage Format ####Ephemeral data protection providers ###Compatibility ####Sharing cookies between applications ####Replacing in ASP.NET

Enforcing SSL

Safe storage of app secrets during development

Azure Key Vault configuration provider

Anti-Request Forgery

Preventing Open Redirect Attacks

Preventing Cross-Site Scripting

Enabling Cross-Origin Requests

Performance

Caching

In-Memory Caching

Working with a Distributed Cache

Response Caching

Response Caching Middleware

Response Compression Middleware

Migration

ASP.NET to ASP.NET Core 1.x

Configuration

Authentication and Identity

Web API

HTTP Modules to Middleware

ASP.NET to ASP.NET Core 2.0

ASP.NET Core 1.x to 2.0

Authentication and Identity

API Reference

2.0 release notes

1.1 Release notes

Earlier release notes

VS 2015/project.json docs

Contribute