Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# Use HttpClient to GET JSON from API endpoint
- C# JWT Token Get Expiry Timestamp
- Serialization and deserialization of 'System.IntPtr' instances are not supported. Path: $.TargetSite.MethodHandle.Value
- C# Authorization in .NET Core API's using Attributes, TypeFilterAttribute and IAuthorizationFilter
- C# Azure Table Storage QueryAsync, Paging and Filtering
- Handling "415 Unsupported Media Type" in .NET Core API
Archive
Meta
Tag Archives: Database
C# Connect to 2 or more databases using a Datacontext
This is more of a design pattern than it is a requirement. I use this technique when my application grows in size. When my application needs to connect to 2 or more databases, I use this encapsulation method to allow … Continue reading
Posted in .net, .NET Core, c#, General .NET, Microsoft Azure
Tagged .net, asp-net-core, Azure, c#, Dapper, Database, Managed Identity, programming, software-development, SQL, Table
Leave a comment
C# Convert array of objects into a DataTable
This extension method lets you convert an array of objects into a DataTable. DataTables are used for SQL inserts. This solution is not mine, in fact it has been copied so many times that I don’t know who came up … Continue reading
C# Dapper Trim String Values
I was calling a stored procedure using Dapper, and for reasons beyond my understanding, the stored procedure returned strings as non-trimmed strings: I could of course look into the stored procedure, but that would require me to obtain new knowledge … Continue reading