Class PostgreSqlConfigurationBuilderExtensions
Inheritance
System.Object
PostgreSqlConfigurationBuilderExtensions
Namespace: Steeltoe.Connectors.PostgreSql
Assembly: Steeltoe.Connectors.dll
Syntax
csharp
public static class PostgreSqlConfigurationBuilderExtensions : object
Methods
| Edit this page View SourceConfigurePostgreSql(IConfigurationBuilder)
Configures the connection string for a PostgreSQL database by merging settings from appsettings.json with cloud service bindings.
Declaration
csharp
public static IConfigurationBuilder ConfigurePostgreSql(this IConfigurationBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration |
builder | The |
Returns
Type | Description |
---|---|
IConfiguration |
The incoming |
ConfigurePostgreSql(IConfigurationBuilder, Nullable<Action<ConnectorConfigureOptionsBuilder>>)
Configures the connection string for a PostgreSQL database by merging settings from appsettings.json with cloud service bindings.
Declaration
csharp
public static IConfigurationBuilder ConfigurePostgreSql(this IConfigurationBuilder builder, Action<ConnectorConfigureOptionsBuilder>? configureAction)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration |
builder | The |
System. |
configureAction | An optional delegate to configure this connector. |
Returns
Type | Description |
---|---|
IConfiguration |
The incoming |