C# Dapper - Return inserted identity
This post describes two ways to get the generated identity of a newly inserted row. We will use the following table simple table with an Id »
This post describes two ways to get the generated identity of a newly inserted row. We will use the following table simple table with an Id »
One way to deserialize XML is using the DataContractSerializer. You can read XML and deserialize it into an object or serialize an object into XML. If »
A common reason for this error is that you using the wrong type of project output. In Visual Studio try the following and rebuild: * Right click »
I found many examples on how to do this around the internet: * DataContractSerializer Deserialize list not working * How to Deserialize XML using DataContractSerializer * DataContractSerializer Class But »
I have always been told to reuse the HttpClient throughout the application lifetime for better performance and stability. If you search for why, there are quite »
You can set default headers on the HttpClient using the DefaultRequestHeaders property: _httpClient.DefaultRequestHeaders.Add("MyFantasticHeader" ,"MyFantasticValue"); var result = await _httpClient.GetAsync( »
You are probably here because you have forgotten the syntax for returning a tuple from a method. To be honest that is also the reason why »
There are two reasons you are on this page: 1) you forgot the syntax for named tuples 2) You have just learned about named tuples and »
You can use the SqlConnection class to connect to a MSSQL server. If we have a database called MyDb with a simple table called MyEntities: CREATE »
I recently got the following error when trying to build a solution after installing a nuget package: > Warning CS8032 An instance of analyzer ProxyInterfaceSourceGenerator.ProxyInterfaceCodeGenerator »