Category: ASP.NET Core

Group DropDownList Options in ASP.NET Core

Group DropDownList Options in ASP.NET Core

This blog explains how to group options in a DropDownList in ASP.NET Core. Let’s look at it with an example. This example is going to bind the list of movie...

Readmore

JSON Serialization and Deserialization in ASP.NET Core

JSON Serialization and Deserialization in ASP.NET Core

This blog is going to explain how to serialize and deserialize the JSON(JavaScript Object Notation) in ASP.NET Core. Here I used System.Text.Json namespace to serialize and deserialize the JSON. Let...

Readmore

Cache Tag Helper in ASP.NET Core

Cache Tag Helper in ASP.NET Core

ASP.NET Core has a lot of built-in Tag Helper. The Cache Tag Helper is one of them. The Cache Tag Helper helps to improve the application performance by storing the...

Readmore

Hosting ASP.NET core application in Ubuntu Linux with Apache

The key feature introduced in .NET Core framework is platform independence, which means apart from Windows we can host ASP.NET Core application in Linux and Mac operating system. But hosting...

Readmore

Different ways to access AppSettings.json configuration in ASP.Net Core

In ASP.NET core reading of configuration is different from the previous versions (MVC 5 or lower versions) of ASP.NET. Since the configuration in ASP.NET core is in json format instead...

Readmore

Entity Framework Core Reverse Engineering

Entity Framework Core Reverse Engineering – Entity Framework Core with Existing Database

Reverse engineering is the process of creating entity classes and DB context using an existing database. This blog is going to explain how to create the Entity Framework Core with...

Readmore

Populating Dropdown using Dependency Injection into View in ASP.NET Core

Populating Dropdown using Dependency Injection into View in ASP.NET Core

This blog explains how to load a drop-down list in View using a dependency injection, without passing the value from the controller. So that it will reduce the request to...

Readmore

Service Injection into View in ASP.NET Core

Service Injection into View in ASP.NET Core

This blog is about how dependency is injected directly into view. Let us look at it using a small example. The following is a ColorListService class that returns a list...

Readmore

ASP.NET Core Service Scope Singleton vs Scoped vs Transient

ASP.NET Core Service Scope

Singleton vs Scoped vs Transient This article describes the service scope in ASP.NET Core and the difference between AddSingleton, AddScoped and AddTransient  methods. Let us see the following example that...

Readmore