Postgres SQL Data Components
-
Asp.Net Standard/Core Dependency Injection
- Use the provided
services.AddPostgresData(Action<PostgresOptions> optionsAccessor = null)method
- Use the provided
-
Other Containers
- Register the
PostgresOptionsas an instance ofIOptions<PostgresOptions>. - Register
IPostgresConnectionas a Singleton.PostgresConnectionhas been provided for this use case
- Register the
NpgsqlConnection Build()- A function to call to generate a new, ready to use, but closed, instance of
NpgsqlConnection
- A function to call to generate a new, ready to use, but closed, instance of