Tag: 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...

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...

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...

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...

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...

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...

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...

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...

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...