
Entity Framework Core (EF) is an ORM that makes it simpler to work with database by using POCO classes that map to database entities and DbContext to interact with them.

Let us learn about Entity Framework Core migrations using ASP.NET CORE.

We’ll create a library to wrap the functionality of HttpClient. I’ll use builder pattern for this purpose. Add a class with methods for storing parts of HttpClient.

How to implement asynchronous messaging using ASP.NET Core Web API. Create an empty project and update the Startup class to add services and middleware for MVC.


Let us learn about formatters used in ASP.NET Core 2.0 Web API.

In case you’re wondering if the solution above is missing a Tag Helper for head HTML element, it’s not. ASP.NET Core team has provided us with two built-in Tag Helpers, one targets head and the other targets the body element: HeadTagHelper and BodyTagHelper.

We add a magic value to the response based on data we hold at the time. Usually ETag header is added for this purpose containing hashed value based on data/body of response.

Implement HATEOAS in an ASP.NET Core Web API by adding action links to collection and individual resource responses using custom media types.

As your Web API changes, you would need to add versioning support in order for clients to continue working correctly. Adding versioning support in ASP.NET Core involves first configuring services in Startup and then choosing a versioning strategy i.e. via query string, URL or HTTP header.

Sorting information is usually received via query parameters. The POCO SortingParams simply hold this information and passes to service (or repository).

Paging information; i.e., page number and page size, is usually received via query parameters. The POCO PagingParams simply holds this information and passes it to service (or repository).

Filtering information is usually received via query parameters. The POCO FilteringParamssimply hold this information and passes to service (or repository).

I discussed in the previous post how configuration settings can be stored in configuration files. However, these files are checked in the source control and not suitable to store confidential settings. In a production environment these settings can be stored in environment variables or Azure Key Vault however, for development ASP.NET Core provides an alternate solution: Secret Manager.

Learn how to build a CRUD Web API in ASP.NET Core 2.0 using controllers, routing, DTOs, and GET, POST, PUT, PATCH, and DELETE endpoints.

To use Razor Pages in ASP.NET Core 2.0, start by creating an empty project and configuring services and middleware in Startup.cs. Define a service and domain model, input/output models, and create CRUD pages in the Pages folder.

I discussed in an earlier post that it is good practice to define middleware in a separate class and add to the pipeline using extension methods. We may also need to pass information to our middleware classes though and I’ve come across two patterns for this when digging into ASP.NET Core source code and other samples online.

Add a class to encapsulate storage access. Add a private helper method to access storage

Filter runs after an action method has been selected to execute. MVC provides built-in filters for things like authorization and caching. Custom filters are very useful to encapsulate reusable code that you want to run before or after action methods.

ASP.NET Core MVC model binding provides IFormFile interface to upload one or more files. upload file in ASP.NET Core MVC, upload file in ASP.NET Core, upload file in ASP.NET Core 2.0, upload file in MVC.

Learn how to configure and use the ASP.NET Core MVC Distributed Cache Tag Helper with Redis and IDistributedCache to cache Razor view content.

As discussed in the previous post, Tag Helpers help generate HTML by attaching attributes to existing HTML elements or by creating new elements. In this post we’ve created a new tag to display employee information.

Tag Helpers help generate HTML by attaching attributes to existing HTML elements or by creating new elements. Although they look like HTML elements and attributes, Tag Helpers are processed by Razor (server-side).

Razor pages inside Areas folder can use the Layout page located outside it (e.g. in /Views/Shared folder). You can define a separate Layout page for each Area too. Yet another approach is to define a common Layout page outside Areas folder and Layout pages inside Areas folder and use them as their layout, creating a nested Layout page structure. Below is a Layout page for Area2 that uses shared layout page (note you need an absolute path to shared layout).

View Components are special types of views that are rendered inside other views. They are useful for reusing parts of a view or splitting a large view into smaller components.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article