Too Long; Didn't Read
The Singleton Design Pattern restricts the instantiation of a class to one object only. In this article we’ll implement a simple DBManager class using dotConnect for Postgres and C#. The class is a singleton DBManager that wraps all calls to the database. We'll use this database table throughout this article to store and retrieve data. The author also discusses the pros and cons of the singleton Design Pattern. This article uses the tools Visual Studio 2019 Community Edition (download) and the tools to deal with code examples.