Code Maze Author

Karthikeyan N S

Karthikeyan is an experienced Software Engineer with five years of experience in .NET development with a passion for building scalable and user-friendly applications. He's skilled in .NET Core Web API, C#, EF Core SQL Server, React, Azure Functions, and Microservices.
Also find me here:

MY ARTICLES:

Early Binding and Late Binding in C#

In C#, method binding refers to associating a method call with the method's code definition. When we invoke a method, the program determines which specific method to execute. This process, known as "binding," can occur at two different times: during compile-time...

Entity Framework Core Best Practices

Entity Framework Core (EF Core) is an object-relational mapper (ORM), enabling us to work with a database using .NET objects, eliminating much of the data-access code we usually need to write. EF Core supports many databases, including SQL Server, SQLite, PostgreSQL,...

StringValues in ASP.NET Core

When developing web applications using ASP.NET Core, we frequently encounter scenarios where we need to manage collections of strings. These collections can originate from various sources, such as HTTP headers, query strings, form data, and configuration settings....

JsonSerializerOptions in ASP.NET Core: Set Global Defaults

ASP.NET Core serializes JSON with System.Text.Json by default, not Newtonsoft.Json. That has been true since ASP.NET Core 3.0, and it is what a Web API created on .NET 10 does today. Changing that default across a whole application means configuring one of three...

Using Kafka in an ASP.NET Core Web API

At its core, Kafka is a distributed streaming platform designed to handle large volumes of data in real-time. Its exceptional performance, fault tolerance, and scalability make it a pivotal component in event-driven architectures. [sc name="github"...

Execute the SELECT WHERE NOT EXIST SQL Query Using LINQ

In database querying, the SELECT WHERE NOT EXISTS clause plays a pivotal role in retrieving data based on the absence of certain conditions. This is particularly useful when filtering records that do not have corresponding entries in another table. In this article, we...

How to Get the Number of Lines in a Text File in C#

In C#, understanding how to count lines in a text file efficiently is a fundamental skill. This seemingly simple task is essential, especially in data manipulation, analysis, or validation scenarios. Whether we are dealing with log files, configuration files, or large...