A static class which retrieves AdbProvider singleton instances that wrap the
Npgsql ADO.NET database provider for PostgreSQL® databases,
which assists with writing provider-independent code, mapping between .NET CLR types
and database types, etc.
Get() provides a singleton instance with which to instantiate AdbConnectionString, AdbConnectionBuilder, AdbKeepOpenConnectionBuilder and and AdbCommandBuilder types, or pass the provider instance to other methods for them to use it.
Note that it is best practice to select which provider to use in only one place in the application, to make it easy to switch to a different provider instance, especially since settings such as how to quote identifiers is specified by picking or creating the appropriate provider instance.
Each AdbProvider instance contains a set of services that implements the provider
functionality. It is possible to tweak an existing provider by using its
to create a new provider instance with one or more services replaced. Custom services
can be derived from existing ones, or created from scratch.
Alternatively, create a custom provider by using the AdbProvider
constructor, specifying all the services.
This provider uses the following service classes:
public static class AdbNpgsqlProvider
Npgsql AdbProvider singleton instance
for a PostgreSQL® database.
public static AdbProvider Get()
The specified AdbProvider singleton instance.