Skip to content
Documentation

HAKOM.Persistence.Sql.PostgreSql.Net Assembly

Provides the PostgreSQL-specific SQL persistence implementation for HAKOM applications, supplying concrete connection, command, parameter, and data reader types backed by Npgsql.

This assembly contains the PostgreSqlStorageProvider which derives from SqlStorageProvider<TConnection,TCommand,TNativeParameter,TReader,TParameter,TParameterFactory> and wires up NpgsqlConnection, NpgsqlCommand, NpgsqlParameter, and NpgsqlDataReader as the concrete ADO.NET types.

Key PostgreSQL-specific behaviors include:

  • Boolean columns can be read from native boolean or smallint types.
  • byte values are mapped to NpgsqlDbType.Smallint because PostgreSQL does not have a single-byte integer type.

Register PostgreSQL services via the extension method in ContainerExtensions:

using HAKOM.Persistence.Sql.PostgreSql.Net.Api.Extensions;
container.UsePostgreSql();
Namespaces
HAKOM.Persistence.Sql.PostgreSql.Net.Api Contains the public API surface of the PostgreSQL persistence module, including PostgreSQL-specific parameter, parameter factory, and storage provider interfaces.
HAKOM.Persistence.Sql.PostgreSql.Net.Api.Exceptions Contains exception types specific to the PostgreSQL persistence provider.
HAKOM.Persistence.Sql.PostgreSql.Net.Api.Extensions Extension methods for registering PostgreSQL persistence services with the IContainer.
© 2026 Volue.Version v0.6.38017 November 2026