Skip to main content
C#

C# Blogs & Tutorials

Step-by-step guides, source code examples and in-depth articles

68
Articles
167,667
Total Views
12,905
Top Article Views

Showing 68 of 68 articles

06
Apr
2026
Integrating ASP.NET Core Identity with NHibernate for Robust User Management
68 views

This tutorial provides a comprehensive guide on integrating ASP.NET Core Identity with NHibernate for effective user management. Understanding this integration is crucial for modern web applications that require scalable and secure authentication and authorization mechanisms. Readers should be familiar with C#, ASP.NET Core basics, and the fundamental concepts of NHibernate ORM.

06
Apr
2026
Unit Testing NHibernate Repositories in ASP.NET Core Projects
56 views

This blog post provides an in-depth exploration of unit testing NHibernate repositories within ASP.NET Core projects, covering the theory, practical implementations, and best practices. Understanding how to effectively test these repositories is crucial for ensuring data integrity and application reliability. Readers should have a basic knowledge of C#, ASP.NET Core, and unit testing principles.

06
Apr
2026
Mapping Strategies for NHibernate in ASP.NET Core: A Comprehensive Guide
65 views

This guide covers the various mapping strategies available in NHibernate for ASP.NET Core applications, offering insights into their practical applications and implications. Understanding these mapping techniques is crucial for efficient database interaction and object-relational mapping in .NET. Familiarity with C# and basic NHibernate concepts will be beneficial for maximizing the value of this content.

05
Apr
2026
Performance Tuning NHibernate for ASP.NET Core Applications
50 views

Readers will learn advanced techniques for optimizing NHibernate in ASP.NET Core applications, focusing on performance improvements. Understanding these concepts is crucial for building scalable and efficient applications that handle large datasets without compromising speed. Prior knowledge of ASP.NET Core and basic NHibernate configurations is recommended.

05
Apr
2026
Troubleshooting NHibernate Errors in ASP.NET Core Applications
55 views

This comprehensive guide delves into troubleshooting NHibernate errors within ASP.NET Core applications, providing readers with the knowledge to identify, analyze, and resolve common issues. Understanding NHibernate's behavior and error messages is crucial for maintaining robust data access layers in enterprise applications. Prior familiarity with ASP.NET Core and basic ORM concepts will enhance the learning experience.

05
Apr
2026
Configuring NHibernate with ASP.NET Core: A Comprehensive Step-by-Step Guide
60 views

In this guide, readers will learn how to effectively configure NHibernate with ASP.NET Core to manage database interactions in a more flexible and powerful manner. This is crucial for developers looking to leverage object-relational mapping (ORM) for seamless database operations within their applications. Prior knowledge of ASP.NET Core and basic C# programming is recommended for optimal understanding.

24
Mar
2026
Comprehensive Security Best Practices for .NET 10 Development in C#
56 views

In this post, readers will explore essential security practices for .NET 10 development, focusing on preventing vulnerabilities and ensuring data integrity. Understanding these practices is crucial for building robust applications that defend against common threats. Prior knowledge of C# and .NET framework fundamentals is recommended.

24
Mar
2026
CWE-119: Buffer Overflow - Understanding Memory Buffer Vulnerabilities in C#
68 views

This comprehensive guide delves into CWE-119, focusing on buffer overflow vulnerabilities in C#. Readers will gain a deep understanding of how these vulnerabilities arise, their implications, and how to prevent them in production code. A solid grasp of memory management and C# programming is recommended to fully benefit from this post.

09
Dec
2023
Complete Guide to Lists in C#: Examples and Best Practices
3,248 views

C# List<T> class is used to store and fetch elements. It can also have duplicate elements. It is found in System.Collections.Generic namespace. List<T> class in C# represents a strongly typed list of objects. List<T> provides functionality to create a list of objects, find list items, sort list, search list, and manipulate list items. In List<T>, T is the type of object. What is the ‘T’ in List<T>? List<T> class represents a strongly typed list of objects. List<T> provides functionality to create a list of objects, find list items, sort list, search list, and manipulate list items. In List<T>, T is the type of objects. How to create List in C#? List is a generic class and is defined in the System.Collections.Generic namespace. You must import this namespace in your project to access the List<T> class. using System.Collections.Generic; The List<T> is a generic collection, so you need to specify a type parameter for the type of data it can store. The following example shows how to create a list and add elements.

09
Dec
2023
If Else Statement
3,516 views

In C# if-else statement also tests the condition. It executes the if block if the condition is true otherwise else block, is executed. the else statement to specify a block of code to be executed if the condition is False. the if-else statement checks a Boolean expression and executes the code based on if the expression is true or false. The if part of the code executes when the value of the expression is true. The else part of the code is executed when the value of the expression is false.

09
Dec
2023
Mastering the foreach Loop in C#: A Complete Guide with Examples
3,180 views

The foreach loop in C# executes a block of code on each element in an array or a collection of items. When executing foreach loop it traversing items in a collection or an array. The foreach loop is useful for traversing each item in an array or a collection of items and displayed one by one. the foreach loop when working with arrays and collections to iterate through the items of arrays/collections. The foreach loop iterates through each item hence called foreach loop.

09
Dec
2023
Mastering While Loops in C#: A Complete Guide with Examples
3,328 views

C# provides the while loop to repeatedly execute a block of code as long as the specified condition returns false. The while loop starts with the while keyword, and it must include a boolean conditional expression inside brackets that returns either true or false. It executes the code block until the specified conditional expression returns false. The condition is given in the beginning of the loop and all statements are executed till the given boolean condition satisfies when the condition becomes false, the control will be out from the while loop else It executes the code block until the specified conditional expression returns false.

31
May
2023
Create JSON String in C#
4,590 views

JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between multiple systems, mostly in Web APIs and client applications. JSON is a text-based format that is easy for humans to read and write and also easy for machines to parse and generate. It is language-independent, meaning it can be used with any programming language that has the capability to parse JSON data.

02
Jul
2022
The report definition is not valid or is not supported by this version of reporting
10,897 views Video

Hello guys in this article we will see how to solve an exception when you try to use old rdlc report and make changes into that . You will see you will get an exception ReportProcessingException: The report definition is not valid. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded. We will see how to solve that.

Translate Page