ASP.NET Core API Reference

Explore the rich set of APIs available in ASP.NET Core.

Core Framework

Microsoft.AspNetCore.Mvc

Contains types for building Model-View-Controller (MVC) applications.

  • ControllerBase

    Base class for MVC controllers.

    Parameters: HttpContext, ModelStateDictionary, ActionContext
    Returns: IActionResult
  • IActionResult

    Represents the result of an action method.

    Interface
  • HttpRequest

    Represents an HTTP request.

    Interface

Microsoft.AspNetCore.Hosting

Contains types for hosting ASP.NET Core applications.

  • WebHostBuilder

    Builds a WebHost.

    Methods: UseStartup<TStartup>(), ConfigureKestrel()

Middleware

Microsoft.AspNetCore.Http

Contains fundamental types for HTTP requests and responses.

  • HttpContext

    Encapsulates all HTTP-specific information about an individual HTTP request.

    Properties: Request, Response, Connection
  • RequestDelegate

    Represents a delegate that can process an HTTP request.

Microsoft.AspNetCore.Builder

Contains types for configuring the HTTP request pipeline.

  • ApplicationBuilder

    Defines properties and methods for constructing an application pipeline.

    Methods: Use(), Map()

Data Access

Microsoft.EntityFrameworkCore

Provides types for Entity Framework Core.

  • DbContext

    Represents a session with the database and can be used to query and save data.

    Properties: DbSet<TEntity>
  • DbSet<TEntity>

    Represents a collection of entities of a particular type in the context.