RSRahul Singhinrahulsdotnet.hashnode.dev·Sep 16, 2023 · 3 min readDependency injection And Service Lifetime in ASP.NET CoreDependency injection is a technique of providing a dependent object from outside rather than the class creating using the new keyword. Pros:1. It increased modularity2. It improves testability3. Centralize place to provide the dependency4. Decouple...00
RSRahul Singhinrahulsdotnet.hashnode.dev·Sep 10, 2023 · 4 min readRead Appsettings.json values in .NET CoreThe Appsettings.json file stores the application configuration in the .NET core. It's a JSON file that holds the key: value pair. In this article, we are going to discuss how to read different types of data from app settings. Connection String Key,...00
RSRahul Singhinrahulsdotnet.hashnode.dev·Aug 19, 2023 · 3 min readCustom data annotation validation attribute in .NET CoreIn this article, we will discuss how to create a custom validation attribute in .net, first of all what is the need of this, as .net already provides many built-in validation attributes. Sometimes when we are working with real-time applications there...00
RSRahul Singhinrahulsdotnet.hashnode.dev·Aug 6, 2023 · 4 min readGlobal Error Handling in .NET Core Web APIIn this article, we will discuss how to handle the Exception in the .Net core web API Globally. Generally, there are multiple ways to do it but today we will discuss it with Middleware. First of all, we will discuss what is Middleware. Middleware is ...00