Best practice of creating a custom exception in .NET
This is a great article explaining how to create a custom exception that follows the standard
http://dotnetconcepts.wordpress.com/2010/05/28/custom-exceptions-in-c/
This is a great article explaining how to create a custom exception that follows the standard
http://dotnetconcepts.wordpress.com/2010/05/28/custom-exceptions-in-c/
AI engineer and solution architect in Sydney. Agents, MCP, RAG, Azure, .NET, EV charging. I write about what breaks after go-live.
This is a simple tutorial in how to use Dependency Injection using SimpleInjector (You can get this package from NuGet) In this case, I use SimpleInjector to manage my Data Context – I want my Data…
I’ve been using EF for quite sometimes and I use Code First to build my schema. The question that I always have in mind is “Once the project is released and we need to add a…
In Automapper, we normally have 1 to 1 mapping defined but I have a case whereas the incoming stream as a json payload which then I cast it as a dynamic (using JObject parse) and in…
I’ve been using log4net in the past and I found it quite useful as it is ready to use out of the box. In my last workplace, we are using SPLUNK and its amazing as I’m…
This post will explain how to iterate through datatable and how to get value based on index. //This function is used to iterate through datatable private void GetAllRows(DataSet ds){ // iterate through table in the DataSet…
CLR Profiler can be used to analyse how your object is allocated in memory and which object has taken the most memory. It also can be used to detect memory leak To download CLR profiler for…