Skip to main content
.NET 6.0+

PostgreSqlConnectionProvider Fields

Implements data-aware operations for working with a PostgreSQL database.
Name Description
DefaultCommandTimeout Specifies the timeout value passed to the IDbCommand.CommandTimeout property of each created command, in seconds. Inherited from ConnectionProviderSql.
EnableConnectionStringArgumentEscaping static Inherited from ConnectionProviderSql.
GlobalCommandPoolBehavior static Specifies the default command pool behavior for all PostgreSqlConnectionProvider instances. The default value is null, which means that the behavior is ConnectionSession for PostgreSQL 8.3+ and None for older versions.
GlobalDefaultCommandTimeout static Specifies the timeout value passed to the IDbCommand.CommandTimeout property, in seconds. Can be overridden by the ConnectionProviderSql.DefaultCommandTimeout field. The default is 300. Inherited from ConnectionProviderSql.
GlobalQueryParameterMode static Specifies how connection providers initialize command parameters. Use the QueryParameterMode property to change this setting for a specific connection provider. Inherited from ConnectionProviderSql.
GlobalUseLegacyGuidSupport static Specifies the default GUID mapping mode for all PostgreSqlConnectionProvider instances. Set this field to true to map GUIDs to CHAR(36) columns or set it to false to map to the UUID columns (requires Npgsql v3.1.0). To specify the character set for a specific PostgreSqlConnectionProvider instance, use the UseLegacyGuidSupport field instead.
GlobalUseLegacyUntypedParameters static This property is now obsolete. Use GlobalQueryParameterMode instead. Inherited from ConnectionProviderSql.
IdentityColumnMagicName static Inherited from ConnectionProviderSql.
MaxDeadLockRetryDelayMilliseconds static Inherited from ConnectionProviderSql.
MaxDeadLockTryCount static Inherited from ConnectionProviderSql.
MaximumStringSize This member supports the internal infrastructure and is not intended to be used directly from your code.
ObjectsOwner This member supports the internal infrastructure and is not intended to be used directly from your code.
QueryParameterMode Specifies how a connection provider initializes command parameters. Inherited from ConnectionProviderSql.
UseLegacyGuidSupport Specifies the default GUID mapping mode for the current PostgreSqlConnectionProvider instance. Set this field to true to map GUIDs to CHAR(36) columns or set it to false to map to the UUID columns (requires Npgsql v3.1.0). When this field is set to null), the GlobalUseLegacyGuidSupport value is used. When both values are null, the UUID columns are used.
UseLegacyTimeSpanSupport static Inherited from ConnectionProviderSql.
UseLegacyUntypedParameters This property is now obsolete. Use QueryParameterMode instead. Inherited from ConnectionProviderSql.
XpoProviderTypeParameterName static Returns a parameter name used to denote a provider type in a connection string. The default value is “XpoProvider”. Inherited from DataStoreBase.
XpoProviderTypeString Gets the name of the current connection provider. This name is used internally when generating a connection string via the PostgreSqlConnectionProvider.GetConnectionString method.
See Also