How To
Retrieve a Single Row with Dapper in C#
1/18/2025 2:53:30 AM 32
When you need to retrieve a single row from a database using Dapper, the simplest approach is to use the QuerySingleOrDefault() method.
Update records with Dapper in C#
1/18/2025 2:50:58 AM 27
You can update records in a database using Dapper by leveraging the Execute() method along with an UPDATE statement.
Advanced Dapper Features in C#
1/18/2025 2:33:59 AM 73
Dapper is a high-performance Object-Relational Mapping (ORM) tool designed for .NET developers, offering fast, lightweight, and efficient data access.
Format Numbers to 2 Decimals in C# with Dapper
1/18/2025 2:33:47 AM 59
If you encounter an issue when inserting numeric data into a SQL database using Dapper.
How to Trim String Values in C# with Dapper
1/18/2025 2:33:42 AM 42
When working with Dapper to call a stored procedure, I encountered an issue where the strings returned from the stored procedure were not trimmed.
Insert records with Dapper in C#
1/18/2025 2:31:37 AM 25
You can easily insert records using Dapper by executing an INSERT statement along with a model object.
How to use IN with Dapper in C#
1/18/2025 2:31:29 AM 29
Imagine you have a SQL query that uses the IN clause, and you need to execute it using Dapper.
Execute a stored procedure with Dapper in C#
1/18/2025 2:29:33 AM 26
You can execute stored procedures using Dapper by specifying the procedure name, parameters, and setting the CommandType to StoredProcedure.
C# EventHandler
1/18/2025 1:53:04 AM 39
Events are a core implementation of the observer pattern and consist of two main components:
Content Negotiation in Web API
1/17/2025 8:26:02 AM 33
Content negotiation is a process that enables a client to request a specific representation of a resource, such as JSON, XML, or plain text, when multiple formats are available.
How to Consume RESTful APIs in C#
1/17/2025 8:03:32 AM 42
When working on a web development project, you'll often find the need to interact with external services or data.
How to run commands in command prompt using C#
1/17/2025 7:18:47 AM 107
To run CMD commands in C#, you can utilize the `System.Diagnostics.Process` class.