Interface INpgsqlDataSourceConfigurationPlugin
- Assembly
- Npgsql.EntityFrameworkCore.PostgreSQL.dll
Represents a plugin that configures an NpgsqlDataSource via NpgsqlDataSourceBuilder.
public interface INpgsqlDataSourceConfigurationPlugin
Remarks
The service lifetime is Singleton and multiple registrations are allowed. This means a single instance of each service is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
See Implementation of database providers and extensions for more information and examples.
Methods
Configure(NpgsqlDataSourceBuilder)
Applies the plugin configuration on the given npgsqlDataSourceBuilder
.
void Configure(NpgsqlDataSourceBuilder npgsqlDataSourceBuilder)
Parameters
npgsqlDataSourceBuilder
NpgsqlDataSourceBuilder