C# Dapper - How to call a stored procedure with a parameter
This post shows you how to call a stored procedure with a parameter using Dapper. If we have the following table with an Id (int) and »
This post shows you how to call a stored procedure with a parameter using Dapper. If we have the following table with an Id (int) and »
Using the HttpRequestMessage together with the HttpClient you can easily send a HTTP Delete request in C#. Below we have a delete endpoint on https://localhost: »
Like with HttpGet HttpPut or HttpPost attributes there is a respective attribute for the HTTP Delete Method - HttpDelete. You can add this attribute to get »
When using tasks you at some point come across having to return a Task without actually having a Task to return. The usual case is in »
Prior to C# 7, the only type of tuple was the System.Tuple class. This type of Tuple is an immutable class (reference type) and a »
Earlier I was putting some code together for an example. I got the following error (Top-level statements must precede namespace and type declarations): Error CS8803 Top-level »
Often when working with JSON you would parse it to a C# object structure that matches your JSON. But sometimes you may want only a subset »
This post describes how to make a HTTP request with a specific content-type using the HttpClient in C#. Using the HttpClient you can POST JSON or »
Using Dapper you can easily map results of a query to an object or a list of objects. Sometimes you want to select a list of »
Dapper makes it easy to "Execute a query and map the results - if any - to a strongly typed List". This post demonstrates »