How To
How to convert string to list in C#
By Tan Lee Published on Dec 20, 2024 953
In C#, you can convert a string to a list by following these steps.
How to Create Word Document in C#
By Tan Lee Published on Jan 17, 2025 356
Creating a Word document programmatically in C# can be achieved using the Microsoft.Office.Interop.Word library.
EF Core - SELECT Queries Involving Multiple Tables
By Tan Lee Published on Feb 06, 2025 144
When you design a database with related tables, it’s common to need data from more than one table or filter records based on values from another table.
EF Core - Aggregate SELECT queries
By Tan Lee Published on Feb 06, 2025 103
In this article, I’ll demonstrate how to use EF Core to aggregate data from a table, group it by a specific category, and apply conditions to include only certain groups.
EF Core - Basic SELECT Queries
By Tan Lee Published on Feb 06, 2025 83
In this article, I’ll walk you through how to execute basic SELECT queries in EF Core, using both LINQ and raw SQL queries.
EF Core - Creating a Composite Primary Key
By Tan Lee Published on Feb 06, 2025 110
A composite primary key consists of two or more columns that together serve as the primary key for a table.
C# LINQ Performance Optimization
By Tan Lee Published on Feb 06, 2025 100
LINQ (Language Integrated Query) is a highly effective feature in C# that streamlines complex data manipulations and queries.
LINQ Extension Methods in C#
By Tan Lee Published on Feb 06, 2025 112
This article explores LINQ (Language Integrated Query) extension methods in C#.
Tuples in C#
By Tan Lee Published on Feb 06, 2025 165
This guide introduces Tuples in C#, offering an exploration of their key features and uses. It aims to provide a thorough understanding of Tuples, highlighting their significance as a versatile and powerful data structure in C#.
String to Byte Array Conversion in C#
By Tan Lee Published on Feb 05, 2025 436
This tutorial will explore how to convert strings to byte arrays and vice versa in C#.
How to Trim a UTF-8 string to the specified number of bytes in C#
By Tan Lee Published on Feb 05, 2025 270
To trim a UTF-8 string to a specified number of bytes in C#, you need to account for the fact that characters in UTF-8 encoding can vary in size, ranging from 1 to 4 bytes.
How to Save a list of strings to a file in C#
By Tan Lee Published on Feb 05, 2025 219
The simplest way to save a list of integers to a file is by using File.WriteAllLines().