Tag: c#
-

Mastering Database Isolation Levels in SQL Server: Ensuring Data Consistency and Concurrency Control
Database isolation levels play a critical role in ensuring data consistency and managing concurrency in SQL Server.
-

Asynchronous Programming in ASP.NET Core: Demystifying Tasks and Threads
The power of asynchronous programming in ASP.NET Core lies in the ability to harness the full potential of Tasks and Threads to create efficient and responsive applications.
-

Understanding Clean Architecture
Understanding Clean Architecture is crucial for building maintainable and scalable software. Let’s provide a concise explanation of Clean Architecture:
-

Differences between IEnumerable and IQueryable in C#
When working with in-memory collections—where data is kept locally in the memory of the application—select IEnumerable. When working with huge data sets or querying external data sources, use IQueryable as it enables effective server-side processing and query optimization.
-

How to check if string is null or empty? or it does not contains anything in C#
In every project developed within the .NET framework, whether it’s a web, console, Windows, or mobile application, it is crucial to validate whether a string is empty, null, or contains anything, including whitespace. Therefore, I’m sharing this C# tip to demonstrate the optimal approach for checking if a string is null, empty, or consists solely…
-

Check Session Timeout by Using ActionFilters in MVC
In a dynamic web application, the session is crucial to hold the information of current logged in user identity/data. So someone without authentication cannot have access to some Page or any ActionResult, to implement this kind of functionality, we need to check session exists (is not null) in every action which required authentication. So, the…
-

Helper to validate image in MVC
In almost 90% of projects, we need to upload images to server and store them. In most cases, hackers try to exploit an image upload system and try to upload exploitable materials like web-shells, some harmful scripts, table deletions scripts, etc.
