Search
How to Set Connection Timeout for TcpClient in C#
By Tan Lee Published on Jan 18, 2025 851
In C#, the TcpClient class doesn't directly provide a way to set a connection timeout.
Read moreAdvanced Dapper Features in C#
By Tan Lee Published on Dec 31, 2024 592
Dapper is a high-performance Object-Relational Mapping (ORM) tool designed for .NET developers, offering fast, lightweight, and efficient data access.
Read moreFormat Numbers to 2 Decimals in C# with Dapper
By Tan Lee Published on Jan 09, 2025 322
If you encounter an issue when inserting numeric data into a SQL database using Dapper.
Read moreHow to Trim String Values in C# with Dapper
By Tan Lee Published on Jan 10, 2025 425
When working with Dapper to call a stored procedure, I encountered an issue where the strings returned from the stored procedure were not trimmed.
Read moreInsert records with Dapper in C#
By Tan Lee Published on Jan 18, 2025 429
You can easily insert records using Dapper by executing an INSERT statement along with a model object.
Read moreHow to use IN with Dapper in C#
By Tan Lee Published on Jan 18, 2025 368
Imagine you have a SQL query that uses the IN clause, and you need to execute it using Dapper.
Read moreExecute a stored procedure with Dapper in C#
By Tan Lee Published on Jan 18, 2025 340
You can execute stored procedures using Dapper by specifying the procedure name, parameters, and setting the CommandType to StoredProcedure.
Read moreAdding dynamic parameters with Dapper in C#
By Tan Lee Published on Jan 18, 2025 452
When executing queries using Dapper, passing dynamic parameters can be done easily with a Dictionary
C# EventHandler
By Tan Lee Published on Jan 18, 2025 263
Events are a core implementation of the observer pattern and consist of two main components:
Read moreHow to Create a Wait Form Dialog in C#
By Tan Lee Published on Jul 16, 2024 32.19K
Creating a wait dialog in a C# Windows Forms application can enhance user experience by providing feedback during long-running operations.
Read more