How to Use NSwag to Generate Vue Client ASP.NET Core 3.1

In this post, we are going to learn how to add a Vue project that will utilize the contacts API we created a few weeks ago using a client-generated by NSwag. This post is part of the revamp of the ASP.NET Core Basics repo that was kicked off when .NET Core 3.0 was released which is now […]

Read more
Know Further About IServiceProvider ASP.NET Core

If you’ve built applications using ASP.NET Core then you’ve most likely used the built-in dependency injection container from Microsoft.Extensions.DependencyInjection. This package provides an implementation of the corresponding abstractions found in Microsoft.Extensions.DependencyInjection.Abstractions. In the previous post, we learned about the IServiceCollection, including how service registrations are converted to ServiceDescriptors and added to the collection. We’ll continue learning about ASP.NET […]

Read more
10 Things You Need to Know About ASP.NET Core Memory Caching

The primary purpose of any caching mechanism is to improve performance of an application. As an ASP.NET developer you are probably aware that ASP.NET web forms as well as ASP.NET MVC could used Cache object to cache application data. This was often called server side data caching and was available as an inbuilt feature of […]

Read more
Try Newest ASP.NET Core 6 Feature with This Hosting Provider!

ASP (Active Server Pages) is a server-side scripting language released in 1996 by Microsoft. Sometimes referred to as ASP Classic, it was superseded by ASP.NET in 2002. ASP websites require Windows servers running the most up-to-date version of Internet Information Services (IIS). Frankly, because of the expensive Microsoft software licenses including Windows Server and MS […]

Read more
How to Create Entity Core Migrations for SQLite and SQL Server

In this post we’ll go through an example of how to setup an ASP.NET Core project with EF Core DB Contexts and Migrations that support multiple different database providers. The below steps show how to use a SQLite database in development and a SQL Server database in production, but you could switch these to any […]

Read more
Know Further About ModelState in ASP.NET 5.0

In this post, we’re going to explain what the ModelState is, and what it is used for. We’ll also show how to use it to validate our POSTed inputs, and do simple custom validation. Here we go! What is the ModelState? In short, the ModelState is a collection of name and value pairs that are submitted to the server […]

Read more
How to Combine ASP.NET Core SignalR Chat with Angular 5

In this post, I will show an article how to use command line prompt with dotnet CLI and Angular CLI. Let’s get started. Create the Projects We will create a new empty ASP.NET Core Web project. You can either do it with Visual Studio or execute dotnet new web in the command line. I have Angular CLI installed on […]

Read more
Using ASP.NET Core to Find Controllers in Your App

In this post I describe application parts and how ASP.NET Core uses them to find the controllers in your app. I then show how you can retrieve the list at runtime for debugging purposes. Debugging a missing controller A while ago I was converting an ASP.NET application to ASP.NET Core. The solution had many class […]

Read more
How to Perform Database Logging Using NLog in ASP.NET Core

NLog is a highly efficient logging framework which helps us enabling logging to almost all logging source format including Console, File, Database logging, etc. High-end logging requirements like Database or File or Rolling File logging provider are still not available through the .NET Core framework. Currently, the available ASP.NET Core version logging framework is already very rich and gives us a […]

Read more