Addtransient Vs Addscoped Vs Addsingleton in .NET Core

Let's try to understand the life cycle of Dependency Injection (DI) using this blog as it is very important in the .NET Core Project. As we know, Dependency injection (DI) is a technique for getting loose coupling between objects and their assistant, or dependencies. Most classes will declare their own dependencies using their constructor, allowing them to follow the Explicit Dependencies Role. Table of Content 1. What is Asp.net Core? 2. What is Addtransient? 3. What is...

read more

Pre-render Blazor application using web assembly

Component tag helper is used to pre-rendering in Blazor server app. Blazor server project template by default pre-render entire app form Page / _Host.cshtml using component tag helper. Component tag helper is used to render specifiedBlazor components into a page or view. Also, Blazor web assembly application allows the developer to use component tag helper with new render mode and add multiple components to pages and view. We can also pass the parameter to component tag helper...

read more

What’s next for System.Text.Json in .NET 5.0?

There are many new features and performance improvements in .NET 5.0. No exception was found in System.Text.Json. Many Developers familiar with Newtonsoft.Json have improved performance, reliability and made it easier. In .NET 5.0 the progress that has been made with System.Text.Json and what’s going to come next will discuss about in more details. Table of Content 1. Getting the Library 2. What is System.Text.Json? 3. Support for Quoted Numbers 4. Extended support...

read more

Stored procedure in ASP.NET Core

Table of Content 1. What is stored procedure? 2. Types of Stored Procedure 2.1. System Defined Stored Procedure 2.2. Extended Stored Procedure 2.3. User-Defined Stored Procedure 2.4. CLR Stored Procedure 3. Difference between Stored Procedure and Function 4. How to create Stored Procedure? 5. Conclusion What is stored procedure? Understand it using a small example, Let’s assume we are creating one application for any company in that...

read more

Getting Started with Windows Forms Designer in .NET Core

The new feature Windows Forms Designer is now available with the .NET Core which is released in Nov 2020. It is used in the .NET Framework but now we can use it in the .NET Core by just enable this tool from the Tools option of the visual studio. Table of Content 1. What is Windows Forms Designer? 2. Functionality 2.1. Step 1: How to Create Project 2.2. Step 2: Create Simple Form 2.3. Step 3: Event Handler (On button click) 2.4. Advantages of Windows Forms...

read more