DTDaniel Tunwasheindtunstech.hashnode.dev·Jan 1, 2025 · 2 min readWhy Does a Controller Inherit from ControllerBase in an ASP.NET Web API Application?Note: This is applicable when developing purely an application programming interface (API) without the intention of designing the views or rendering razor pages as done in ASP.NET MVC applications. If your application has both APIs and Razor views, u...00
DTDaniel Tunwasheindtunstech.hashnode.dev·Jan 1, 2025 · 3 min readWhat is the Difference Between IEnumerable, ICollection, IQueryable, IList, and List in C#?Introduction When working with collections in C#, we often come across IEnumerable, ICollection, IQueryable, IList, and List. Each serves different purposes and has distinct functionalities. Let’s break them down and understand when and why to use ea...00
DTDaniel Tunwasheindtunstech.hashnode.dev·Jan 1, 2025 · 3 min readWhy Do We Need to Create an ApplicationDbContext That Inherits from DbContext in Our.NET Application?Introduction When building an API in a.NET application using the.NET Core framework, it is a convention to create a ApplicationDbContext class that inherits from DbContext. But why is this necessary? Let’s dive into the reasons. What is DbContext? D...00
DTDaniel Tunwasheindtunstech.hashnode.dev·Jan 1, 2025 · 2 min readScaffolding in ASP.NETScaffolding in ASP.NET is a powerful technique that the.NET framework employs to generate quick code, simplifying and accelerating the development process for developers. It provides boilerplate code that makes tasks like creating CRUD (Create, Read,...00
DTDaniel Tunwasheindtunstech.hashnode.dev·Dec 25, 2024 · 5 min readExploring Loading Techniques in Software DevelopmentIn this article, I’ll guide you through various loading techniques used in software development. These techniques enhance application performance, user experience, and resource management. Let’s explore each one in detail. 1. Lazy Loading Just as th...00