Tuples are a very useful feature of the C# language; they allow more than one value to be grouped and passed back and forth without needing to define additional types. As we’ll discover later in this article, tuples are particularly convenient for returning more than one value from a method, avoiding the need for ugly…
Blog
InNoSQL
In my previous two posts, I covered how to set up a MongoDB development environment and then followed this up with how to get started with MongoDB queries. While it’s great to have a development environment set up and know how to run queries from the command line, ultimately you’ll need to figure out how…
InNoSQL
As a document-oriented database, MongoDB is very different from relational databases such as SQL Server or PostgreSQL. This is particularly true in regards to database queries since MongoDB features its own unique query API that is completely different from using a traditional query language like SQL. Working with MongoDB can sometimes seem like wizardry to…
InNoSQL
MongoDB is a hugely popular NoSQL database engine that is continuing to grow both in terms of its userbase and its feature-set. Given the ongoing push for rapid application development and the need to adapt quickly to changing requirements, MongoDB provides a platform where you can iterate quickly and change course as needed. In more…
Choosing a strategy for calculating a unique and reliable device identifier can be a frustrating and somewhat more difficult decision than you might initially think. There’s no silver bullet and like many things in the world of programming, pros and cons need to be determined and trade-offs need to be made. In this article, I…
InSQL
Sometimes when working with a SQL Server database, you need to update a specific table row or insert a new row if the one you were trying to update isn’t already there. This logic is known as an ‘upsert’ operation i.e. either update or insert a row depending on whether it currently exists. In this…
InWeb
When publishing a website to IIS (Internet Information Services), it’s not uncommon to encounter errors from time to time. If you’re publishing an intranet application there are a number of errors that are more likely to crop up. In this post, I explain how to resolve a specific publish error relating to the server certificate….
If like me, you are fascinated by science, you’ll possibly know a little bit already about the strange phenomena of quantum mechanics. Concepts like superposition, entanglement, and teleportation are all things that seem like they should be impossible but have been proven time and time again in the lab. Yes, things do behave very strangely…
IIS (Internet Information Services) remains a widely used web server for hosting websites, FTP (File Transfer Protocol) sites, and other applications on Windows servers. While the graphical IIS Manager interface is great for setting things up initially and for providing a visual overview of your web configuration, there are also some great use cases for…
Implementing the Repository pattern in conjunction with the Unit of Work pattern is a best practice for data access that can bring a number of benefits to your application codebase when implemented correctly. Given the ease of use and scalability advantages that async .NET code offers, it makes sense to ensure that your data access…