Custom response caching in ASP.NET Core

Cache invalidation is the process that entries in the cache which can be replaced or removed. The server cannot force the new version of the page to be used instead of the cached page, once the page is cached in the browser. So, pages likely to change cannot be cached for a very long time at the client and we cannot change this too. On the server-side, built-in response caching does not permit cache invalidation. Same cache duration for both for instructing the browser to cache the page,...

read more

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

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