paint-brush
Implement a Singleton DBManager in ASP.NET Core and C#by@jordan-sanders
896 reads
896 reads

Implement a Singleton DBManager in ASP.NET Core and C#

by Jordan Sanders12mJanuary 24th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.

Company Mentioned

Mention Thumbnail
featured image - Implement a Singleton DBManager in ASP.NET Core and C#
Jordan Sanders HackerNoon profile picture
Jordan Sanders

Jordan Sanders

@jordan-sanders

PR Manager at Devart since 2010 | Obsessed with the promotion of database development optimization

Learn More
LEARN MORE ABOUT @JORDAN-SANDERS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Jordan Sanders HackerNoon profile picture
Jordan Sanders@jordan-sanders
PR Manager at Devart since 2010 | Obsessed with the promotion of database development optimization

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite